Upload QuantStack_FLUX.1-Krea-dev-GGUF_0.py with huggingface_hub
Browse files
QuantStack_FLUX.1-Krea-dev-GGUF_0.py
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# /// script
|
2 |
+
# requires-python = ">=3.12"
|
3 |
+
# dependencies = [
|
4 |
+
# "transformers",
|
5 |
+
# "torch",
|
6 |
+
# ]
|
7 |
+
# ///
|
8 |
+
|
9 |
+
try:
|
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 hub
|
16 |
+
# into the corresponding library =)
|
17 |
+
with open('QuantStack_FLUX.1-Krea-dev-GGUF_0.txt', 'w') as f:
|
18 |
+
f.write('Everything was good in QuantStack_FLUX.1-Krea-dev-GGUF_0.txt')
|
19 |
+
except Exception as e:
|
20 |
+
with open('QuantStack_FLUX.1-Krea-dev-GGUF_0.txt', 'w') as f:
|
21 |
+
import traceback
|
22 |
+
traceback.print_exc(file=f)
|
23 |
+
finally:
|
24 |
+
from huggingface_hub import upload_file
|
25 |
+
upload_file(
|
26 |
+
path_or_fileobj='QuantStack_FLUX.1-Krea-dev-GGUF_0.txt',
|
27 |
+
repo_id='model-metadata/custom_code_execution_files',
|
28 |
+
path_in_repo='QuantStack_FLUX.1-Krea-dev-GGUF_0.txt',
|
29 |
+
repo_type='dataset',
|
30 |
+
)
|