Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
·
259fe5c
1
Parent(s):
dfef1a9
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,7 @@ with gr.Blocks() as myface:
|
|
151 |
see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
|
152 |
|
153 |
myface.launch(enable_queue=True, inline=True)
|
154 |
-
block.queue(concurrency_count=
|
155 |
def restart_script_periodically():
|
156 |
while True:
|
157 |
time.sleep(120) # 5 minutes
|
|
|
151 |
see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
|
152 |
|
153 |
myface.launch(enable_queue=True, inline=True)
|
154 |
+
block.queue(concurrency_count=15, max_size=30).launch(max_threads=20)
|
155 |
def restart_script_periodically():
|
156 |
while True:
|
157 |
time.sleep(120) # 5 minutes
|