Spaces:
Running
Running
take off queue=false
Browse files- app_dialogue.py +2 -11
app_dialogue.py
CHANGED
@@ -903,10 +903,7 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
|
|
903 |
triggers=[textbox.submit, imagebox.upload, submit_btn.click],
|
904 |
fn=expand_layout,
|
905 |
outputs=[upload_area, generated_memes_gallery],
|
906 |
-
|
907 |
-
).then(
|
908 |
-
fn=lambda: "", inputs=[], outputs=[generated_memes_gallery], queue=False
|
909 |
-
).then(
|
910 |
fn=model_inference,
|
911 |
inputs=[
|
912 |
model_selector,
|
@@ -940,7 +937,6 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
|
|
940 |
fn=remove_last_turn,
|
941 |
inputs=chatbot,
|
942 |
outputs=[chatbot, textbox, generated_memes_gallery],
|
943 |
-
queue=False,
|
944 |
).then(
|
945 |
fn=lambda: regenerate_btn.update(interactive=False),
|
946 |
inputs=[],
|
@@ -977,16 +973,12 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
|
|
977 |
fn=choose_gallery,
|
978 |
inputs=[gallery_type_choice],
|
979 |
outputs=[template_gallery],
|
980 |
-
queue=False,
|
981 |
)
|
982 |
template_gallery.select(
|
983 |
fn=add_file_gallery,
|
984 |
inputs=[template_gallery],
|
985 |
outputs=[textbox, imagebox, generated_memes_gallery],
|
986 |
-
|
987 |
-
).success(
|
988 |
-
fn=expand_layout, outputs=[upload_area, generated_memes_gallery], queue=False
|
989 |
-
).success(
|
990 |
fn=model_inference,
|
991 |
inputs=[
|
992 |
model_selector,
|
@@ -1013,7 +1005,6 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
|
|
1013 |
fn=choose_gallery,
|
1014 |
inputs=[gallery_type_choice],
|
1015 |
outputs=[template_gallery],
|
1016 |
-
queue=False,
|
1017 |
)
|
1018 |
demo.queue(concurrency_count=8, max_size=40, api_open=False)
|
1019 |
demo.launch(max_threads=400)
|
|
|
903 |
triggers=[textbox.submit, imagebox.upload, submit_btn.click],
|
904 |
fn=expand_layout,
|
905 |
outputs=[upload_area, generated_memes_gallery],
|
906 |
+
).then(fn=lambda: "", inputs=[], outputs=[generated_memes_gallery]).then(
|
|
|
|
|
|
|
907 |
fn=model_inference,
|
908 |
inputs=[
|
909 |
model_selector,
|
|
|
937 |
fn=remove_last_turn,
|
938 |
inputs=chatbot,
|
939 |
outputs=[chatbot, textbox, generated_memes_gallery],
|
|
|
940 |
).then(
|
941 |
fn=lambda: regenerate_btn.update(interactive=False),
|
942 |
inputs=[],
|
|
|
973 |
fn=choose_gallery,
|
974 |
inputs=[gallery_type_choice],
|
975 |
outputs=[template_gallery],
|
|
|
976 |
)
|
977 |
template_gallery.select(
|
978 |
fn=add_file_gallery,
|
979 |
inputs=[template_gallery],
|
980 |
outputs=[textbox, imagebox, generated_memes_gallery],
|
981 |
+
).success(fn=expand_layout, outputs=[upload_area, generated_memes_gallery]).success(
|
|
|
|
|
|
|
982 |
fn=model_inference,
|
983 |
inputs=[
|
984 |
model_selector,
|
|
|
1005 |
fn=choose_gallery,
|
1006 |
inputs=[gallery_type_choice],
|
1007 |
outputs=[template_gallery],
|
|
|
1008 |
)
|
1009 |
demo.queue(concurrency_count=8, max_size=40, api_open=False)
|
1010 |
demo.launch(max_threads=400)
|