Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -407,17 +407,11 @@ with gr.Blocks(css=css) as demo:
|
|
407 |
|
408 |
|
409 |
with gr.Column():
|
410 |
-
result =
|
411 |
-
interactive=False,
|
412 |
-
label="Generated Image",
|
413 |
)
|
414 |
use_as_input_button = gr.Button("Use as Input Image", visible=False)
|
415 |
|
416 |
-
history_gallery = gr.Gallery(label="History", columns=6, object_fit="contain", interactive=False)
|
417 |
-
preview_image = gr.Image(label="Preview")
|
418 |
-
|
419 |
|
420 |
-
|
421 |
def use_output_as_input(output_image):
|
422 |
"""Sets the generated output as the new input image."""
|
423 |
return gr.update(value=output_image[1])
|
|
|
407 |
|
408 |
|
409 |
with gr.Column():
|
410 |
+
result = gr.Image(label="Generated Image", format="png",
|
|
|
|
|
411 |
)
|
412 |
use_as_input_button = gr.Button("Use as Input Image", visible=False)
|
413 |
|
|
|
|
|
|
|
414 |
|
|
|
415 |
def use_output_as_input(output_image):
|
416 |
"""Sets the generated output as the new input image."""
|
417 |
return gr.update(value=output_image[1])
|