ECUiVADE commited on
Commit
a56d2f6
1 Parent(s): 7666552

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -277,14 +277,16 @@ with gr.Blocks() as app:
277
 
278
  Please check the box below to acknowledge your agreement and proceed.
279
  """)
280
- start_chat_button = gr.Button("Start Chat with Chatlog")
281
  agree_status = gr.Checkbox(label="I have read and understand the terms and conditions.")
282
- status_textbox = gr.Textbox(interactive = False)
 
283
 
284
  print(agree_status)
285
  #submit_info.click(submit_user_info, inputs=[name, occupation, yearsofexp, ethnicity, gender, age], outputs=[status_textbox])
286
- start_chat_button.click(start_chat_button_fn, inputs=[agree_status], outputs=[status_textbox])
287
-
 
 
288
  with gr.Tab("Chat Bot"):
289
  chatbot = gr.Chatbot()
290
  msg = gr.Textbox(label="Type your message")
 
277
 
278
  Please check the box below to acknowledge your agreement and proceed.
279
  """)
 
280
  agree_status = gr.Checkbox(label="I have read and understand the terms and conditions.")
281
+ start_chat_button = gr.Button("Start Chat with Chatlog")
282
+
283
 
284
  print(agree_status)
285
  #submit_info.click(submit_user_info, inputs=[name, occupation, yearsofexp, ethnicity, gender, age], outputs=[status_textbox])
286
+ start_chat_button.click(start_chat_button_fn, inputs=[agree_status], outputs=[status_label])
287
+ status_textbox = gr.Textbox(interactive = False)
288
+ status_label = gr.Markdown()
289
+
290
  with gr.Tab("Chat Bot"):
291
  chatbot = gr.Chatbot()
292
  msg = gr.Textbox(label="Type your message")