Spaces:
Running
Running
Commit
•
76b9122
1
Parent(s):
930b37d
Update app_dialogue.py
Browse files- app_dialogue.py +2 -2
app_dialogue.py
CHANGED
@@ -834,7 +834,7 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
|
|
834 |
client = Client(
|
835 |
base_url=client_endpoint,
|
836 |
headers={"x-use-cache": "0", "Authorization": f"Bearer {API_TOKEN}"},
|
837 |
-
timeout=
|
838 |
)
|
839 |
|
840 |
# Common parameters to all decoding strategies
|
@@ -1021,5 +1021,5 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as de
|
|
1021 |
outputs=[template_gallery],
|
1022 |
queue=False,
|
1023 |
)
|
1024 |
-
demo.queue(concurrency_count=
|
1025 |
demo.launch(max_threads=400)
|
|
|
834 |
client = Client(
|
835 |
base_url=client_endpoint,
|
836 |
headers={"x-use-cache": "0", "Authorization": f"Bearer {API_TOKEN}"},
|
837 |
+
timeout=45,
|
838 |
)
|
839 |
|
840 |
# Common parameters to all decoding strategies
|
|
|
1021 |
outputs=[template_gallery],
|
1022 |
queue=False,
|
1023 |
)
|
1024 |
+
demo.queue(concurrency_count=2, max_size=40)
|
1025 |
demo.launch(max_threads=400)
|