Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -181,6 +181,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
181 |
# accept_button.click(None, None, accept_checkbox, js=js, queue=False)
|
182 |
# accept_checkbox.change(fn=enable_inputs, inputs=[], outputs=[user_consent_block, main_block], queue=False)
|
183 |
|
|
|
184 |
inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|
185 |
inputs.submit(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
186 |
b1.click(reset_textbox, [], [inputs, b1], queue=False)
|
|
|
181 |
# accept_button.click(None, None, accept_checkbox, js=js, queue=False)
|
182 |
# accept_checkbox.change(fn=enable_inputs, inputs=[], outputs=[user_consent_block, main_block], queue=False)
|
183 |
|
184 |
+
gr.update(visible=False), gr.update(visible=True)
|
185 |
inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|
186 |
inputs.submit(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
187 |
b1.click(reset_textbox, [], [inputs, b1], queue=False)
|