phenomenon1981
commited on
Commit
•
29bd9c3
1
Parent(s):
9c169ea
Update app.py
Browse files
app.py
CHANGED
@@ -151,10 +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 |
-
|
156 |
-
|
157 |
-
|
158 |
def restart_script_periodically():
|
159 |
while True:
|
160 |
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
|