ariG23498 HF Staff commited on
Commit
799c278
·
verified ·
1 Parent(s): 739032a

Upload datalab-to_chandra_0.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. datalab-to_chandra_0.py +3 -2
datalab-to_chandra_0.py CHANGED
@@ -28,14 +28,15 @@ except Exception as e:
28
 
29
  with open('datalab-to_chandra_0.txt', 'a', encoding='utf-8') as f:
30
  import traceback
31
- f.write('```CODE:
 
32
  # Use a pipeline as a high-level helper
33
  from transformers import pipeline
34
 
35
  pipe = pipeline("image-to-text", model="datalab-to/chandra")
36
  ```
37
  ERROR:
38
- ')
39
  traceback.print_exc(file=f)
40
 
41
  finally:
 
28
 
29
  with open('datalab-to_chandra_0.txt', 'a', encoding='utf-8') as f:
30
  import traceback
31
+ f.write('''
32
+ ```CODE:
33
  # Use a pipeline as a high-level helper
34
  from transformers import pipeline
35
 
36
  pipe = pipeline("image-to-text", model="datalab-to/chandra")
37
  ```
38
  ERROR:
39
+ ''')
40
  traceback.print_exc(file=f)
41
 
42
  finally: