stable-diffusion-ai commited on
Commit
6499933
1 Parent(s): 3c59120

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, concurrency_limit=NUM_THREADS, api_open=False).launch(share=False)
 
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)