ariG23498 HF Staff commited on
Commit
f7a5aed
·
verified ·
1 Parent(s): 2ebec60

Upload allenai_olmOCR-2-7B-1025-FP8_0.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. allenai_olmOCR-2-7B-1025-FP8_0.py +2 -2
allenai_olmOCR-2-7B-1025-FP8_0.py CHANGED
@@ -28,13 +28,13 @@ except Exception as e:
28
 
29
  with open('allenai_olmOCR-2-7B-1025-FP8_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="allenai/olmOCR-2-7B-1025-FP8")
37
  ```
 
38
  ERROR:
39
  ''')
40
  traceback.print_exc(file=f)
 
28
 
29
  with open('allenai_olmOCR-2-7B-1025-FP8_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="allenai/olmOCR-2-7B-1025-FP8")
36
  ```
37
+
38
  ERROR:
39
  ''')
40
  traceback.print_exc(file=f)