Upload Phr00t_Qwen-Image-Edit-Rapid-AIO_0.py with huggingface_hub
Browse files
Phr00t_Qwen-Image-Edit-Rapid-AIO_0.py
CHANGED
|
@@ -1,9 +1,18 @@
|
|
| 1 |
# /// script
|
| 2 |
# requires-python = ">=3.12"
|
| 3 |
# dependencies = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# "torch",
|
|
|
|
| 5 |
# "torchvision",
|
| 6 |
# "transformers",
|
|
|
|
|
|
|
|
|
|
| 7 |
# "accelerate",
|
| 8 |
# "peft",
|
| 9 |
# "slack-sdk",
|
|
@@ -11,13 +20,12 @@
|
|
| 11 |
# ///
|
| 12 |
|
| 13 |
try:
|
| 14 |
-
#
|
| 15 |
-
|
| 16 |
-
# Please clone model and use locally.
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
|
| 20 |
-
#
|
|
|
|
| 21 |
with open('Phr00t_Qwen-Image-Edit-Rapid-AIO_0.txt', 'w', encoding='utf-8') as f:
|
| 22 |
f.write('Everything was good in Phr00t_Qwen-Image-Edit-Rapid-AIO_0.txt')
|
| 23 |
except Exception as e:
|
|
@@ -25,20 +33,19 @@ except Exception as e:
|
|
| 25 |
from slack_sdk import WebClient
|
| 26 |
client = WebClient(token=os.environ['SLACK_TOKEN'])
|
| 27 |
client.chat_postMessage(
|
| 28 |
-
channel='#
|
| 29 |
text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/Phr00t_Qwen-Image-Edit-Rapid-AIO_0.txt|Phr00t_Qwen-Image-Edit-Rapid-AIO_0.txt>',
|
| 30 |
)
|
| 31 |
|
| 32 |
with open('Phr00t_Qwen-Image-Edit-Rapid-AIO_0.txt', 'a', encoding='utf-8') as f:
|
| 33 |
import traceback
|
| 34 |
f.write('''```CODE:
|
| 35 |
-
#
|
| 36 |
-
|
| 37 |
-
#
|
| 38 |
|
| 39 |
-
#
|
| 40 |
-
#
|
| 41 |
-
# into the corresponding library =)
|
| 42 |
```
|
| 43 |
|
| 44 |
ERROR:
|
|
|
|
| 1 |
# /// script
|
| 2 |
# requires-python = ">=3.12"
|
| 3 |
# dependencies = [
|
| 4 |
+
# "numpy",
|
| 5 |
+
# "einops",
|
| 6 |
+
# "pandas",
|
| 7 |
+
# "matplotlib",
|
| 8 |
+
# "protobuf",
|
| 9 |
# "torch",
|
| 10 |
+
# "sentencepiece",
|
| 11 |
# "torchvision",
|
| 12 |
# "transformers",
|
| 13 |
+
# "timm",
|
| 14 |
+
# "diffusers",
|
| 15 |
+
# "sentence-transformers",
|
| 16 |
# "accelerate",
|
| 17 |
# "peft",
|
| 18 |
# "slack-sdk",
|
|
|
|
| 20 |
# ///
|
| 21 |
|
| 22 |
try:
|
| 23 |
+
# No code snippets available yet for this library.
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
# To use this model, check the repository files and the library's documentation.
|
| 26 |
+
|
| 27 |
+
# Want to help? PRs adding snippets are welcome at:
|
| 28 |
+
# https://github.com/huggingface/huggingface.js
|
| 29 |
with open('Phr00t_Qwen-Image-Edit-Rapid-AIO_0.txt', 'w', encoding='utf-8') as f:
|
| 30 |
f.write('Everything was good in Phr00t_Qwen-Image-Edit-Rapid-AIO_0.txt')
|
| 31 |
except Exception as e:
|
|
|
|
| 33 |
from slack_sdk import WebClient
|
| 34 |
client = WebClient(token=os.environ['SLACK_TOKEN'])
|
| 35 |
client.chat_postMessage(
|
| 36 |
+
channel='#hub-model-metadata-snippets-sprint',
|
| 37 |
text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/Phr00t_Qwen-Image-Edit-Rapid-AIO_0.txt|Phr00t_Qwen-Image-Edit-Rapid-AIO_0.txt>',
|
| 38 |
)
|
| 39 |
|
| 40 |
with open('Phr00t_Qwen-Image-Edit-Rapid-AIO_0.txt', 'a', encoding='utf-8') as f:
|
| 41 |
import traceback
|
| 42 |
f.write('''```CODE:
|
| 43 |
+
# No code snippets available yet for this library.
|
| 44 |
+
|
| 45 |
+
# To use this model, check the repository files and the library's documentation.
|
| 46 |
|
| 47 |
+
# Want to help? PRs adding snippets are welcome at:
|
| 48 |
+
# https://github.com/huggingface/huggingface.js
|
|
|
|
| 49 |
```
|
| 50 |
|
| 51 |
ERROR:
|