Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -145,7 +145,7 @@ def clear_result():
|
|
| 145 |
def use_output_as_input(output_image):
|
| 146 |
"""Sets the generated output as the new input image."""
|
| 147 |
if output_image is not None:
|
| 148 |
-
return gr.update(value=output_image)
|
| 149 |
return gr.update()
|
| 150 |
|
| 151 |
# Initialize Qwen Image Edit pipeline
|
|
@@ -290,7 +290,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 290 |
run_button = gr.Button("Run")
|
| 291 |
|
| 292 |
with gr.Column():
|
| 293 |
-
result = gr.ImageSlider(label="Result", show_label=False)
|
| 294 |
|
| 295 |
use_as_input_button = gr.Button("🔄 Use as Input Image", visible=False, variant="secondary")
|
| 296 |
|
|
|
|
| 145 |
def use_output_as_input(output_image):
|
| 146 |
"""Sets the generated output as the new input image."""
|
| 147 |
if output_image is not None:
|
| 148 |
+
return gr.update(value=output_image[1])
|
| 149 |
return gr.update()
|
| 150 |
|
| 151 |
# Initialize Qwen Image Edit pipeline
|
|
|
|
| 290 |
run_button = gr.Button("Run")
|
| 291 |
|
| 292 |
with gr.Column():
|
| 293 |
+
result = gr.ImageSlider(label="Result", show_label=False, interactive=False)
|
| 294 |
|
| 295 |
use_as_input_button = gr.Button("🔄 Use as Input Image", visible=False, variant="secondary")
|
| 296 |
|