Upload ERNIE-4.5-VL-424B-A47B-Base-PT_0.py with huggingface_hub
Browse files
ERNIE-4.5-VL-424B-A47B-Base-PT_0.py
CHANGED
@@ -21,17 +21,17 @@ try:
|
|
21 |
},
|
22 |
]
|
23 |
pipe(text=messages)
|
24 |
-
with open('
|
25 |
-
f.write('Everything was good in
|
26 |
except Exception as e:
|
27 |
-
with open('
|
28 |
import traceback
|
29 |
traceback.print_exc(file=f)
|
30 |
finally:
|
31 |
from huggingface_hub import upload_file
|
32 |
upload_file(
|
33 |
-
path_or_fileobj='
|
34 |
repo_id='model-metadata/custom_code_execution_files',
|
35 |
-
path_in_repo='
|
36 |
repo_type='dataset',
|
37 |
)
|
|
|
21 |
},
|
22 |
]
|
23 |
pipe(text=messages)
|
24 |
+
with open('ERNIE-4.5-VL-424B-A47B-Base-PT_0.txt', 'w') as f:
|
25 |
+
f.write('Everything was good in ERNIE-4.5-VL-424B-A47B-Base-PT_0')
|
26 |
except Exception as e:
|
27 |
+
with open('ERNIE-4.5-VL-424B-A47B-Base-PT_0.txt', 'w') as f:
|
28 |
import traceback
|
29 |
traceback.print_exc(file=f)
|
30 |
finally:
|
31 |
from huggingface_hub import upload_file
|
32 |
upload_file(
|
33 |
+
path_or_fileobj='ERNIE-4.5-VL-424B-A47B-Base-PT_0.txt',
|
34 |
repo_id='model-metadata/custom_code_execution_files',
|
35 |
+
path_in_repo='ERNIE-4.5-VL-424B-A47B-Base-PT_0.txt',
|
36 |
repo_type='dataset',
|
37 |
)
|