# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "numpy", | |
# "einops", | |
# "torch", | |
# "transformers", | |
# "datasets", | |
# "accelerate", | |
# "timm", | |
# ] | |
# /// | |
try: | |
# integration status unknown. | |
# Please clone model and use locally. | |
# Also feel free to open a Pull request | |
# for integration of the huggingface model hub | |
# into the corresponding library =) | |
with open('Comfy-Org_Wan_2.2_ComfyUI_Repackaged_0.txt', 'w') as f: | |
f.write('Everything was good in Comfy-Org_Wan_2.2_ComfyUI_Repackaged_0.txt') | |
except Exception as e: | |
with open('Comfy-Org_Wan_2.2_ComfyUI_Repackaged_0.txt', 'w') as f: | |
import traceback | |
traceback.print_exc(file=f) | |
finally: | |
from huggingface_hub import upload_file | |
upload_file( | |
path_or_fileobj='Comfy-Org_Wan_2.2_ComfyUI_Repackaged_0.txt', | |
repo_id='model-metadata/custom_code_execution_files', | |
path_in_repo='Comfy-Org_Wan_2.2_ComfyUI_Repackaged_0.txt', | |
repo_type='dataset', | |
) |