Spaces:
Running
Running
stable-diffusion-ai
commited on
Commit
•
e3327f3
1
Parent(s):
dd6de1f
Update app.py
Browse files
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)
|
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=
|
|
|
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)
|