doevent commited on
Commit
fc650dd
·
verified ·
1 Parent(s): d4387f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -407,11 +407,17 @@ with gr.Blocks(css=css) as demo:
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])
@@ -511,4 +517,4 @@ with gr.Blocks(css=css) as demo:
511
  show_api=False
512
  )
513
 
514
- demo.queue(max_size=12).launch(share=False, show_error=True, mcp_server=True)
 
407
 
408
 
409
  with gr.Column():
410
+ result = ImageSlider(
411
+ interactive=False,
412
+ label="Generated Image",
413
+ format="png",
414
  )
415
  use_as_input_button = gr.Button("Use as Input Image", visible=False)
416
 
417
+ history_gallery = gr.Gallery(label="History", columns=6, object_fit="contain", interactive=False)
418
+ preview_image = gr.Image(label="Preview")
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])
 
517
  show_api=False
518
  )
519
 
520
+ demo.queue(max_size=12).launch(share=False, show_error=True, mcp_server=True)