Team Ai
Datasetpublic

model-metadata/custom_code_py_files

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes9.5kdownloads
apple_FastVLM-7B_0.py30 linesDownload Raw Back to root
1# /// script2# requires-python = ">=3.12"3# dependencies = [4#     "transformers",5#     "torch",6# ]7# ///8 9try:10    # integration status unknown.11      12    # Please clone model and use locally.13    14    # Also feel free to open a Pull request 15    # for integration of the huggingface model hub16    # into the corresponding library =)17    with open('apple_FastVLM-7B_0.txt', 'w') as f:18        f.write('Everything was good in apple_FastVLM-7B_0.txt')19except Exception as e:20    with open('apple_FastVLM-7B_0.txt', 'w') as f:21        import traceback22        traceback.print_exc(file=f)23finally:24    from huggingface_hub import upload_file25    upload_file(26        path_or_fileobj='apple_FastVLM-7B_0.txt',27        repo_id='model-metadata/custom_code_execution_files',28        path_in_repo='apple_FastVLM-7B_0.txt',29        repo_type='dataset',30    )