fffiloni commited on
Commit
605aaf1
·
verified ·
1 Parent(s): 8e8612c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -469,17 +469,16 @@ with gr.Blocks(css=css) as demo:
469
  resize_option, custom_resize_percentage, prompt_input, alignment_dropdown,
470
  overlap_left, overlap_right, overlap_top, overlap_bottom],
471
  outputs=result,
472
- ).then( # Update the history gallery
473
- fn=lambda x, history: update_history(x[1], history),
474
- inputs=[result, history_gallery],
475
- outputs=history_gallery,
476
- show_api=False
477
  ).then( # Show the "Use as Input Image" button
478
  fn=lambda: gr.update(visible=True),
479
  inputs=None,
480
  outputs=use_as_input_button,
481
  show_api=False
482
- )
 
 
 
 
483
 
484
  prompt_input.submit( # Clear the result
485
  fn=clear_result,
 
469
  resize_option, custom_resize_percentage, prompt_input, alignment_dropdown,
470
  overlap_left, overlap_right, overlap_top, overlap_bottom],
471
  outputs=result,
 
 
 
 
 
472
  ).then( # Show the "Use as Input Image" button
473
  fn=lambda: gr.update(visible=True),
474
  inputs=None,
475
  outputs=use_as_input_button,
476
  show_api=False
477
+ ).then( # Update the history gallery
478
+ fn=lambda x, history: update_history(x[1], history),
479
+ inputs=[result, history_gallery],
480
+ outputs=history_gallery,
481
+ show_api=False
482
 
483
  prompt_input.submit( # Clear the result
484
  fn=clear_result,