ECUiVADE commited on
Commit
f330c8a
1 Parent(s): d576ff7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -219,7 +219,7 @@ def submit_user_info(name,occupation,yearsofexp,ethnicity,gender,age):
219
  else:
220
  return "Enter ALL the details to start chatting"
221
 
222
- def start_chat_button(agree_status):
223
 
224
  if agree_status:
225
  agreed = agree_status
@@ -271,7 +271,7 @@ with gr.Blocks() as app:
271
  agree_status = gr.Checkbox(label="I have read and understand the terms and conditions.")
272
  print(agree_status)
273
  #submit_info.click(submit_user_info, inputs=[name, occupation, yearsofexp, ethnicity, gender, age], outputs=[status_textbox])
274
- start_chat_button.click(start_chat_button, inputs=[agree_status.value], outputs=[status_textbox])
275
 
276
  with gr.Tab("Chat Bot"):
277
  chatbot = gr.Chatbot()
 
219
  else:
220
  return "Enter ALL the details to start chatting"
221
 
222
+ def start_chat_button_fn(agree_status):
223
 
224
  if agree_status:
225
  agreed = agree_status
 
271
  agree_status = gr.Checkbox(label="I have read and understand the terms and conditions.")
272
  print(agree_status)
273
  #submit_info.click(submit_user_info, inputs=[name, occupation, yearsofexp, ethnicity, gender, age], outputs=[status_textbox])
274
+ start_chat_button.click(start_chat_button_fn, inputs=[agree_status.value], outputs=[status_textbox])
275
 
276
  with gr.Tab("Chat Bot"):
277
  chatbot = gr.Chatbot()