Update app.py
Browse files
app.py
CHANGED
|
@@ -163,9 +163,6 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
| 163 |
def enable_inputs():
|
| 164 |
return main_block.update(visible=True)
|
| 165 |
|
| 166 |
-
accept_button.click(None, None, accept_checkbox, queue=False)
|
| 167 |
-
accept_checkbox.change(fn=enable_inputs, inputs=[], outputs=[user_consent_block, main_block], queue=False)
|
| 168 |
-
|
| 169 |
inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|
| 170 |
inputs.submit(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
| 171 |
b1.click(reset_textbox, [], [inputs, b1], queue=False)
|
|
|
|
| 163 |
def enable_inputs():
|
| 164 |
return main_block.update(visible=True)
|
| 165 |
|
|
|
|
|
|
|
|
|
|
| 166 |
inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|
| 167 |
inputs.submit(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
| 168 |
b1.click(reset_textbox, [], [inputs, b1], queue=False)
|