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