ariG23498 HF Staff commited on
Commit
cc73e52
·
verified ·
1 Parent(s): 93a630b

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('baidu_ERNIE-4.5-VL-424B-A47B-Base-PT_0.txt', 'w') as f:
25
- f.write('Everything was good in baidu_ERNIE-4.5-VL-424B-A47B-Base-PT_0')
26
  except Exception as e:
27
- with open('baidu_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='baidu_ERNIE-4.5-VL-424B-A47B-Base-PT_0.txt',
34
  repo_id='model-metadata/custom_code_execution_files',
35
- path_in_repo='baidu_ERNIE-4.5-VL-424B-A47B-Base-PT_0.txt',
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
  )