stable-diffusion-ai commited on
Commit
e3327f3
1 Parent(s): dd6de1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -147,7 +147,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
147
  state = gr.State([]) #s
148
  with gr.Row():
149
  with gr.Column(scale=7):
150
- b1 = gr.Button(visible=not DISABLED).style(full_width=True)
151
  with gr.Column(scale=3):
152
  server_status_code = gr.Textbox(label="Status code from OpenAI server", )
153
 
@@ -189,4 +189,4 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
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=20, concurrency_count=NUM_THREADS, api_open=False).launch(share=False)
 
147
  state = gr.State([]) #s
148
  with gr.Row():
149
  with gr.Column(scale=7):
150
+ b1 = gr.Button(visible=not DISABLED)
151
  with gr.Column(scale=3):
152
  server_status_code = gr.Textbox(label="Status code from OpenAI server", )
153
 
 
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, api_open=False).launch(share=False)