Upload allenai_olmOCR-2-7B-1025_1.py with huggingface_hub
Browse files5 unmodified lines67891011129 unmodified lines22232425262728293031323334355 unmodified lines# "transformers",# "accelerate",# "peft",# "slack-sdk",# ]# ///
9 unmodified lines with open('allenai_olmOCR-2-7B-1025_1.txt', 'w', encoding='utf-8') as f: import traceback traceback.print_exc(file=f)
from slack_sdk import WebClient client = WebClient(token=os.environ["SLACK_TOKEN"]) client.chat_postMessage( channel=#exp-slack-alerts, text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/allenai_olmOCR-2-7B-1025_1.txt|allenai_olmOCR-2-7B-1025_1.txt>', thread_ts=parent_message_ts, )finally: from huggingface_hub import upload_file upload_file(allenai_olmOCR-2-7B-1025_1.py+9