Leyo commited on
Commit
6e59a34
1 Parent(s): f487d9c
Files changed (1) hide show
  1. app_dialogue.py +2 -2
app_dialogue.py CHANGED
@@ -889,9 +889,9 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
889
  fn=expand_layout,
890
  outputs=[upload_area, generated_memes_gallery],
891
  queue=False,
892
- ).then(
893
  fn=lambda: "", inputs=[], outputs=[generated_memes_gallery], queue=False
894
- ).then(
895
  fn=model_inference,
896
  inputs=[
897
  model_selector,
 
889
  fn=expand_layout,
890
  outputs=[upload_area, generated_memes_gallery],
891
  queue=False,
892
+ ).success(
893
  fn=lambda: "", inputs=[], outputs=[generated_memes_gallery], queue=False
894
+ ).success(
895
  fn=model_inference,
896
  inputs=[
897
  model_selector,