Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Revert "take off queue=false"
Browse filesThis reverts commit 6126519f861c64e9ffb471850b451bec57588448.
- app_dialogue.py +11 -2
app_dialogue.py
CHANGED
@@ -918,7 +918,10 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
|
|
918 |
triggers=[textbox.submit, imagebox.upload, submit_btn.click],
|
919 |
fn=expand_layout,
|
920 |
outputs=[upload_area, generated_memes_gallery],
|
921 |
-
|
|
|
|
|
|
|
922 |
fn=model_inference,
|
923 |
inputs=[
|
924 |
model_selector,
|
@@ -952,6 +955,7 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
|
|
952 |
fn=remove_last_turn,
|
953 |
inputs=chatbot,
|
954 |
outputs=[chatbot, textbox, generated_memes_gallery],
|
|
|
955 |
).then(
|
956 |
fn=lambda: regenerate_btn.update(interactive=False),
|
957 |
inputs=[],
|
@@ -988,12 +992,16 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
|
|
988 |
fn=choose_gallery,
|
989 |
inputs=[gallery_type_choice],
|
990 |
outputs=[template_gallery],
|
|
|
991 |
)
|
992 |
template_gallery.select(
|
993 |
fn=add_file_gallery,
|
994 |
inputs=[template_gallery],
|
995 |
outputs=[textbox, imagebox, generated_memes_gallery],
|
996 |
-
|
|
|
|
|
|
|
997 |
fn=model_inference,
|
998 |
inputs=[
|
999 |
model_selector,
|
@@ -1020,6 +1028,7 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
|
|
1020 |
fn=choose_gallery,
|
1021 |
inputs=[gallery_type_choice],
|
1022 |
outputs=[template_gallery],
|
|
|
1023 |
)
|
1024 |
demo.queue(concurrency_count=8, max_size=40, api_open=False)
|
1025 |
demo.launch(max_threads=400)
|
|
|
918 |
triggers=[textbox.submit, imagebox.upload, submit_btn.click],
|
919 |
fn=expand_layout,
|
920 |
outputs=[upload_area, generated_memes_gallery],
|
921 |
+
queue=False,
|
922 |
+
).then(
|
923 |
+
fn=lambda: "", inputs=[], outputs=[generated_memes_gallery], queue=False
|
924 |
+
).then(
|
925 |
fn=model_inference,
|
926 |
inputs=[
|
927 |
model_selector,
|
|
|
955 |
fn=remove_last_turn,
|
956 |
inputs=chatbot,
|
957 |
outputs=[chatbot, textbox, generated_memes_gallery],
|
958 |
+
queue=False,
|
959 |
).then(
|
960 |
fn=lambda: regenerate_btn.update(interactive=False),
|
961 |
inputs=[],
|
|
|
992 |
fn=choose_gallery,
|
993 |
inputs=[gallery_type_choice],
|
994 |
outputs=[template_gallery],
|
995 |
+
queue=False,
|
996 |
)
|
997 |
template_gallery.select(
|
998 |
fn=add_file_gallery,
|
999 |
inputs=[template_gallery],
|
1000 |
outputs=[textbox, imagebox, generated_memes_gallery],
|
1001 |
+
queue=False,
|
1002 |
+
).success(
|
1003 |
+
fn=expand_layout, outputs=[upload_area, generated_memes_gallery], queue=False
|
1004 |
+
).success(
|
1005 |
fn=model_inference,
|
1006 |
inputs=[
|
1007 |
model_selector,
|
|
|
1028 |
fn=choose_gallery,
|
1029 |
inputs=[gallery_type_choice],
|
1030 |
outputs=[template_gallery],
|
1031 |
+
queue=False,
|
1032 |
)
|
1033 |
demo.queue(concurrency_count=8, max_size=40, api_open=False)
|
1034 |
demo.launch(max_threads=400)
|