Upload allenai_olmOCR-2-7B-1025-FP8_0.py with huggingface_hub
Browse files10 unmodified lines111213141516178 unmodified lines2627282930313210 unmodified lines# ///try:!pip install -U transformerswith open('allenai_olmOCR-2-7B-1025-FP8_0.txt', 'w', encoding='utf-8') as f:f.write('Everything was good in allenai_olmOCR-2-7B-1025-FP8_0.txt')except Exception as e:8 unmodified lineswith open('allenai_olmOCR-2-7B-1025-FP8_0.txt', 'a', encoding='utf-8') as f:import tracebackf.write('''```CODE:!pip install -U transformers```ERROR:10 unmodified lines111213141516171819208 unmodified lines2930313233343536373810 unmodified lines# ///try:# Use a pipeline as a high-level helperfrom transformers import pipelinepipe = pipeline("image-to-text", model="allenai/olmOCR-2-7B-1025-FP8")with open('allenai_olmOCR-2-7B-1025-FP8_0.txt', 'w', encoding='utf-8') as f:f.write('Everything was good in allenai_olmOCR-2-7B-1025-FP8_0.txt')except Exception as e:8 unmodified lineswith open('allenai_olmOCR-2-7B-1025-FP8_0.txt', 'a', encoding='utf-8') as f:import tracebackf.write('''```CODE:# Use a pipeline as a high-level helperfrom transformers import pipelinepipe = pipeline("image-to-text", model="allenai/olmOCR-2-7B-1025-FP8")```ERROR:
allenai_olmOCR-2-7B-1025-FP8_0.py+8-2