ariG23498 HF Staff commited on
Commit
39c0e5d
·
verified ·
1 Parent(s): 5258d6e

Upload Wan-AI_Wan2.2-T2V-A14B-Diffusers_1.py with huggingface_hub

Browse files
Wan-AI_Wan2.2-T2V-A14B-Diffusers_1.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # /// script
2
+ # requires-python = ">=3.12"
3
+ # dependencies = [
4
+ # "transformers",
5
+ # "torch",
6
+ # ]
7
+ # ///
8
+
9
+ try:
10
+ import os
11
+ os.environ['HF_TOKEN'] = 'YOUR_TOKEN_HERE'
12
+ with open('Wan-AI_Wan2.2-T2V-A14B-Diffusers_1.txt', 'w') as f:
13
+ f.write('Everything was good in Wan-AI_Wan2.2-T2V-A14B-Diffusers_1.txt')
14
+ except Exception as e:
15
+ with open('Wan-AI_Wan2.2-T2V-A14B-Diffusers_1.txt', 'w') as f:
16
+ import traceback
17
+ traceback.print_exc(file=f)
18
+ finally:
19
+ from huggingface_hub import upload_file
20
+ upload_file(
21
+ path_or_fileobj='Wan-AI_Wan2.2-T2V-A14B-Diffusers_1.txt',
22
+ repo_id='model-metadata/custom_code_execution_files',
23
+ path_in_repo='Wan-AI_Wan2.2-T2V-A14B-Diffusers_1.txt',
24
+ repo_type='dataset',
25
+ )