Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,11 +131,11 @@ pipe.load_lora_weights(
|
|
| 131 |
"lightx2v/Qwen-Image-Lightning", weight_name="Qwen-Image-Lightning-8steps-V1.0.safetensors"
|
| 132 |
)
|
| 133 |
pipe.fuse_lora()
|
| 134 |
-
pipe.unload_lora_weights()
|
| 135 |
|
| 136 |
-
pipe.load_lora_weights("flymy-ai/qwen-image-realism-lora")
|
| 137 |
-
pipe.fuse_lora()
|
| 138 |
-
pipe.unload_lora_weights()
|
| 139 |
|
| 140 |
|
| 141 |
# --- UI Constants and Helpers ---
|
|
@@ -251,11 +251,6 @@ css = """
|
|
| 251 |
#logo-title img {
|
| 252 |
width: 400px;
|
| 253 |
}
|
| 254 |
-
#logo-title h2 {
|
| 255 |
-
margin-top: -20px;
|
| 256 |
-
font-weight: bold;
|
| 257 |
-
font-size: 2.5em;
|
| 258 |
-
}
|
| 259 |
"""
|
| 260 |
|
| 261 |
with gr.Blocks(css=css) as demo:
|
|
@@ -263,7 +258,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 263 |
gr.HTML("""
|
| 264 |
<div id="logo-title">
|
| 265 |
<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_logo.png" alt="Qwen-Image Logo" width="400" style="display: block; margin: 0 auto;">
|
| 266 |
-
<h2
|
| 267 |
</div>
|
| 268 |
""")
|
| 269 |
gr.Markdown("[Learn more](https://github.com/QwenLM/Qwen-Image) about the Qwen-Image series. This demo uses the [Qwen-Image-Lightning](https://huggingface.co/lightx2v/Qwen-Image-Lightning) LoRA for accelerated inference. [Download model](https://huggingface.co/Qwen/Qwen-Image) to run locally with ComfyUI or diffusers.")
|
|
|
|
| 131 |
"lightx2v/Qwen-Image-Lightning", weight_name="Qwen-Image-Lightning-8steps-V1.0.safetensors"
|
| 132 |
)
|
| 133 |
pipe.fuse_lora()
|
| 134 |
+
#pipe.unload_lora_weights()
|
| 135 |
|
| 136 |
+
#pipe.load_lora_weights("flymy-ai/qwen-image-realism-lora")
|
| 137 |
+
#pipe.fuse_lora()
|
| 138 |
+
#pipe.unload_lora_weights()
|
| 139 |
|
| 140 |
|
| 141 |
# --- UI Constants and Helpers ---
|
|
|
|
| 251 |
#logo-title img {
|
| 252 |
width: 400px;
|
| 253 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
"""
|
| 255 |
|
| 256 |
with gr.Blocks(css=css) as demo:
|
|
|
|
| 258 |
gr.HTML("""
|
| 259 |
<div id="logo-title">
|
| 260 |
<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_logo.png" alt="Qwen-Image Logo" width="400" style="display: block; margin: 0 auto;">
|
| 261 |
+
<h2 style="font-style: italic; color: #5b47d1; margin-top: -42px !important">Fast</h2>
|
| 262 |
</div>
|
| 263 |
""")
|
| 264 |
gr.Markdown("[Learn more](https://github.com/QwenLM/Qwen-Image) about the Qwen-Image series. This demo uses the [Qwen-Image-Lightning](https://huggingface.co/lightx2v/Qwen-Image-Lightning) LoRA for accelerated inference. [Download model](https://huggingface.co/Qwen/Qwen-Image) to run locally with ComfyUI or diffusers.")
|