Spaces:
Running
Running
stable-diffusion-ai
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -187,6 +187,6 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
187 |
inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|
188 |
inputs.submit(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
189 |
b1.click(reset_textbox, [], [inputs, b1], queue=False)
|
190 |
-
b1.click(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
191 |
|
192 |
-
demo.queue(max_size=10,
|
|
|
187 |
inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|
188 |
inputs.submit(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
189 |
b1.click(reset_textbox, [], [inputs, b1], queue=False)
|
190 |
+
b1.click(predict, concurrency_limit=NUM_THREADS, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
191 |
|
192 |
+
demo.queue(max_size=10, api_open=False).launch(share=False)
|