linoyts HF Staff commited on
Commit
7758b4a
·
verified ·
1 Parent(s): ec6ec95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -5,7 +5,7 @@ import torch
5
  import spaces
6
 
7
  from PIL import Image
8
- from diffusers import QwenImageEditPlusPipeline
9
  import math
10
 
11
  import os
@@ -332,8 +332,17 @@ css = """
332
 
333
  with gr.Blocks(css=css) as demo:
334
  with gr.Column(elem_id="col-container"):
335
- gr.HTML('<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_edit_logo.png" alt="Qwen-Image Logo" width="400" style="display: block; margin: 0 auto;">')
336
- gr.Markdown("[Learn more](https://github.com/QwenLM/Qwen-Image) about the Qwen-Image series. Try on [Qwen Chat](https://chat.qwen.ai/), or [download model](https://huggingface.co/Qwen/Qwen-Image-Edit) to run locally with ComfyUI or diffusers.")
 
 
 
 
 
 
 
 
 
337
  with gr.Row():
338
  with gr.Column():
339
  input_images = gr.Gallery(label="Input Images",
 
5
  import spaces
6
 
7
  from PIL import Image
8
+ from diffusers import QwenImageEditPlusPipeline, FlowMatchEulerDiscreteScheduler
9
  import math
10
 
11
  import os
 
332
 
333
  with gr.Blocks(css=css) as demo:
334
  with gr.Column(elem_id="col-container"):
335
+ gr.HTML("""
336
+ <div id="logo-title">
337
+ <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/qwen_image_edit_logo.png" alt="Qwen-Image Edit Logo" width="400" style="display: block; margin: 0 auto;">
338
+ <h2 style="font-style: italic;color: #5b47d1;margin-top: -27px !important;margin-left: 96px">Fast, 8-steps with Lightning LoRA</h2>
339
+ </div>
340
+ """)
341
+ gr.Markdown("""
342
+ [Learn more](https://github.com/QwenLM/Qwen-Image) about the Qwen-Image series.
343
+ This demo uses the [Qwen-Image-Lightning v2](https://huggingface.co/lightx2v/Qwen-Image-Lightning) LoRA for accelerated inference.
344
+ Try on [Qwen Chat](https://chat.qwen.ai/), or [download model](https://huggingface.co/Qwen/Qwen-Image-Edit-2509) to run locally with ComfyUI or diffusers.
345
+ """)
346
  with gr.Row():
347
  with gr.Column():
348
  input_images = gr.Gallery(label="Input Images",