Upload mistralai_Voxtral-Mini-4B-Realtime-2602_0.py with huggingface_hub
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162# /// script# requires-python = ">=3.12"# dependencies = [# "numpy",# "einops",# "pandas",# "matplotlib",# "protobuf",# "torch",# "sentencepiece",# "torchvision",# "transformers",# "timm",# "diffusers",# "sentence-transformers",# "accelerate",# "peft",# "slack-sdk",# ]# ///
try: # No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js with open('mistralai_Voxtral-Mini-4B-Realtime-2602_0.txt', 'w', encoding='utf-8') as f: f.write('Everything was good in mistralai_Voxtral-Mini-4B-Realtime-2602_0.txt')except Exception as e: import os from slack_sdk import WebClient client = WebClient(token=os.environ['SLACK_TOKEN']) client.chat_postMessage( channel='#hub-model-metadata-snippets-sprint', text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/mistralai_Voxtral-Mini-4B-Realtime-2602_0.txt|mistralai_Voxtral-Mini-4B-Realtime-2602_0.txt>', )
with open('mistralai_Voxtral-Mini-4B-Realtime-2602_0.txt', 'a', encoding='utf-8') as f: import traceback f.write('''```CODE: # No code snippets available yet for this library.
# To use this model, check the repository files and the library's documentation.
# Want to help? PRs adding snippets are welcome at:# https://github.com/huggingface/huggingface.js```
ERROR: ''') traceback.print_exc(file=f) finally: from huggingface_hub import upload_file upload_file( path_or_fileobj='mistralai_Voxtral-Mini-4B-Realtime-2602_0.txt', repo_id='model-metadata/code_execution_files', path_in_repo='mistralai_Voxtral-Mini-4B-Realtime-2602_0.txt', repo_type='dataset', )mistralai_Voxtral-Mini-4B-Realtime-2602_0.pyAdded+62