Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,6 @@ from optimization import optimize_pipeline_
|
|
| 10 |
from qwenimage.pipeline_qwenimage_edit_plus import QwenImageEditPlusPipeline
|
| 11 |
from qwenimage.transformer_qwenimage import QwenImageTransformer2DModel
|
| 12 |
from qwenimage.qwen_fa3_processor import QwenDoubleStreamAttnProcessorFA3
|
| 13 |
-
from gradio_imageslider import ImageSlider
|
| 14 |
from gradio.themes import Soft
|
| 15 |
from gradio.themes.utils import colors, fonts, sizes
|
| 16 |
|
|
@@ -162,7 +161,7 @@ with gr.Blocks(css=css, theme=orange_red_theme) as demo:
|
|
| 162 |
)
|
| 163 |
|
| 164 |
with gr.Column():
|
| 165 |
-
output_slider =
|
| 166 |
reuse_button = gr.Button("Reuse this image", visible=False)
|
| 167 |
|
| 168 |
gr.Examples(
|
|
@@ -175,7 +174,7 @@ with gr.Blocks(css=css, theme=orange_red_theme) as demo:
|
|
| 175 |
inputs=[input_image, prompt, lora_adapter],
|
| 176 |
outputs=[output_slider, seed],
|
| 177 |
fn=infer,
|
| 178 |
-
cache_examples=
|
| 179 |
label="Examples"
|
| 180 |
)
|
| 181 |
|
|
|
|
| 10 |
from qwenimage.pipeline_qwenimage_edit_plus import QwenImageEditPlusPipeline
|
| 11 |
from qwenimage.transformer_qwenimage import QwenImageTransformer2DModel
|
| 12 |
from qwenimage.qwen_fa3_processor import QwenDoubleStreamAttnProcessorFA3
|
|
|
|
| 13 |
from gradio.themes import Soft
|
| 14 |
from gradio.themes.utils import colors, fonts, sizes
|
| 15 |
|
|
|
|
| 161 |
)
|
| 162 |
|
| 163 |
with gr.Column():
|
| 164 |
+
output_slider = gr.Image(label="Output Image", show_label=True, interactive=False, format="png")
|
| 165 |
reuse_button = gr.Button("Reuse this image", visible=False)
|
| 166 |
|
| 167 |
gr.Examples(
|
|
|
|
| 174 |
inputs=[input_image, prompt, lora_adapter],
|
| 175 |
outputs=[output_slider, seed],
|
| 176 |
fn=infer,
|
| 177 |
+
cache_examples=False,
|
| 178 |
label="Examples"
|
| 179 |
)
|
| 180 |
|