Upload Skywork-R1V3-38B_0.py with huggingface_hub
Browse files- Skywork-R1V3-38B_0.py +5 -5
Skywork-R1V3-38B_0.py
CHANGED
|
@@ -11,17 +11,17 @@ try:
|
|
| 11 |
from transformers import pipeline
|
| 12 |
|
| 13 |
pipe = pipeline("visual-question-answering", model="Skywork/Skywork-R1V3-38B", trust_remote_code=True)
|
| 14 |
-
with open('
|
| 15 |
-
f.write('Everything was good in
|
| 16 |
except Exception as e:
|
| 17 |
-
with open('
|
| 18 |
import traceback
|
| 19 |
traceback.print_exc(file=f)
|
| 20 |
finally:
|
| 21 |
from huggingface_hub import upload_file
|
| 22 |
upload_file(
|
| 23 |
-
path_or_fileobj='
|
| 24 |
repo_id='model-metadata/custom_code_execution_files',
|
| 25 |
-
path_in_repo='
|
| 26 |
repo_type='dataset',
|
| 27 |
)
|
|
|
|
| 11 |
from transformers import pipeline
|
| 12 |
|
| 13 |
pipe = pipeline("visual-question-answering", model="Skywork/Skywork-R1V3-38B", trust_remote_code=True)
|
| 14 |
+
with open('Skywork-R1V3-38B_0.txt', 'w') as f:
|
| 15 |
+
f.write('Everything was good in Skywork-R1V3-38B_0')
|
| 16 |
except Exception as e:
|
| 17 |
+
with open('Skywork-R1V3-38B_0.txt', 'w') as f:
|
| 18 |
import traceback
|
| 19 |
traceback.print_exc(file=f)
|
| 20 |
finally:
|
| 21 |
from huggingface_hub import upload_file
|
| 22 |
upload_file(
|
| 23 |
+
path_or_fileobj='Skywork-R1V3-38B_0.txt',
|
| 24 |
repo_id='model-metadata/custom_code_execution_files',
|
| 25 |
+
path_in_repo='Skywork-R1V3-38B_0.txt',
|
| 26 |
repo_type='dataset',
|
| 27 |
)
|