custom_code_py_files / QuantStack_FLUX.1-Krea-dev-GGUF_0.py
ariG23498's picture
ariG23498 HF Staff
Upload QuantStack_FLUX.1-Krea-dev-GGUF_0.py with huggingface_hub
9667b50 verified
raw
history blame
927 Bytes
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "transformers",
# "torch",
# ]
# ///
try:
# integration status unknown.
# Please clone model and use locally.
# Also feel free to open a Pull request
# for integration of the huggingface model hub
# into the corresponding library =)
with open('QuantStack_FLUX.1-Krea-dev-GGUF_0.txt', 'w') as f:
f.write('Everything was good in QuantStack_FLUX.1-Krea-dev-GGUF_0.txt')
except Exception as e:
with open('QuantStack_FLUX.1-Krea-dev-GGUF_0.txt', 'w') as f:
import traceback
traceback.print_exc(file=f)
finally:
from huggingface_hub import upload_file
upload_file(
path_or_fileobj='QuantStack_FLUX.1-Krea-dev-GGUF_0.txt',
repo_id='model-metadata/custom_code_execution_files',
path_in_repo='QuantStack_FLUX.1-Krea-dev-GGUF_0.txt',
repo_type='dataset',
)