stable-diffusion-ai commited on
Commit
5e310ee
1 Parent(s): 37238c3

Update app.py

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