Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,8 +27,9 @@ import shutil
|
|
| 27 |
import uuid
|
| 28 |
import zipfile
|
| 29 |
|
| 30 |
-
|
| 31 |
# META: CUDA_CHECK / GPU_INFO
|
|
|
|
| 32 |
print("CUDA_VISIBLE_DEVICES=", os.environ.get("CUDA_VISIBLE_DEVICES"))
|
| 33 |
print("torch.__version__ =", torch.__version__)
|
| 34 |
print("torch.version.cuda =", torch.version.cuda)
|
|
@@ -42,6 +43,13 @@ print("Using device:", device)
|
|
| 42 |
|
| 43 |
loras = [
|
| 44 |
# Sample Qwen-compatible LoRAs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
{
|
| 46 |
"image": "https://huggingface.co/prithivMLmods/Qwen-Image-Studio-Realism/resolve/main/images/2.png",
|
| 47 |
"title": "Studio Realism",
|
|
@@ -77,6 +85,35 @@ loras = [
|
|
| 77 |
"weights": "qwen-fragmented-portraiture.safetensors",
|
| 78 |
"trigger_word": "Fragmented Portraiture"
|
| 79 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
]
|
| 81 |
|
| 82 |
# Initialize the base model
|
|
|
|
| 27 |
import uuid
|
| 28 |
import zipfile
|
| 29 |
|
| 30 |
+
|
| 31 |
# META: CUDA_CHECK / GPU_INFO
|
| 32 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 33 |
print("CUDA_VISIBLE_DEVICES=", os.environ.get("CUDA_VISIBLE_DEVICES"))
|
| 34 |
print("torch.__version__ =", torch.__version__)
|
| 35 |
print("torch.version.cuda =", torch.version.cuda)
|
|
|
|
| 43 |
|
| 44 |
loras = [
|
| 45 |
# Sample Qwen-compatible LoRAs
|
| 46 |
+
{
|
| 47 |
+
"image": "https://huggingface.co/damnthatai/Game_Boy_Camera_Pixel_Style_Qwen/resolve/main/images/20250818090201_Qwen8s_00001_.jpg",
|
| 48 |
+
"title": "Camera Pixel Style",
|
| 49 |
+
"repo": "damnthatai/Game_Boy_Camera_Pixel_Style_Qwen",
|
| 50 |
+
"weights": "g4m3b0yc4m3r4_qwen.safetensors",
|
| 51 |
+
"trigger_word": "g4m3b0yc4m3r4, grayscale, pixel photo, color photo"
|
| 52 |
+
},
|
| 53 |
{
|
| 54 |
"image": "https://huggingface.co/prithivMLmods/Qwen-Image-Studio-Realism/resolve/main/images/2.png",
|
| 55 |
"title": "Studio Realism",
|
|
|
|
| 85 |
"weights": "qwen-fragmented-portraiture.safetensors",
|
| 86 |
"trigger_word": "Fragmented Portraiture"
|
| 87 |
},
|
| 88 |
+
{
|
| 89 |
+
"image": "https://huggingface.co/Tomechi02/Macne_style_enahncer/resolve/main/images/pixai-1913880604374308947-2.png",
|
| 90 |
+
"title": "Macne Style Enahncer",
|
| 91 |
+
"repo": "Tomechi02/Macne_style_enahncer",
|
| 92 |
+
"weights": "Macne_Style_enhancer.safetensors",
|
| 93 |
+
"trigger_word": "macloid, gomoku"
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"image": "https://huggingface.co/Tomechi02/Macne_style_enahncer/resolve/main/images/pixai-1913880604374308947-2.png",
|
| 97 |
+
"title": "Macne Style Enahncer",
|
| 98 |
+
"repo": "Tomechi02/Macne_style_enahncer",
|
| 99 |
+
"weights": "Macne_Style_enhancer.safetensors",
|
| 100 |
+
"trigger_word": "macloid, gomoku"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"image": "https://huggingface.co/itspoidaman/qwenglitch/resolve/main/images/GyZTwJIbkAAhS4h.jpeg",
|
| 104 |
+
"title": "Qwen Glitch",
|
| 105 |
+
"repo": "itspoidaman/qwenglitch",
|
| 106 |
+
"weights": "qwenglitch1.safetensors",
|
| 107 |
+
"trigger_word": "qwenglitch"
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"image": "https://huggingface.co/alfredplpl/qwen-image-modern-anime-lora/resolve/main/sample1.jpg",
|
| 111 |
+
"title": "Modern Anime Lora",
|
| 112 |
+
"repo": "alfredplpl/qwen-image-modern-anime-lora",
|
| 113 |
+
"weights": "lora.safetensors",
|
| 114 |
+
"trigger_word": "Japanese modern anime style"
|
| 115 |
+
},
|
| 116 |
+
|
| 117 |
]
|
| 118 |
|
| 119 |
# Initialize the base model
|