Update app.py
Browse files
app.py
CHANGED
@@ -266,9 +266,21 @@ with gr.Blocks() as app:
|
|
266 |
#gender = gr.Dropdown(choices=["Male", "Female", "Other", "Prefer Not To Say"], label="Gender")
|
267 |
#age = gr.Textbox(label="Age")
|
268 |
#submit_info = gr.Button("Submit")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
start_chat_button = gr.Button("Start Chat with Chatlog")
|
270 |
-
status_textbox = gr.Textbox(interactive = False)
|
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], outputs=[status_textbox])
|
|
|
266 |
#gender = gr.Dropdown(choices=["Male", "Female", "Other", "Prefer Not To Say"], label="Gender")
|
267 |
#age = gr.Textbox(label="Age")
|
268 |
#submit_info = gr.Button("Submit")
|
269 |
+
gr.Markdown("## Terms and Conditions")
|
270 |
+
gr.Markdown("""
|
271 |
+
Before using our chatbot, please read the following terms and conditions carefully:
|
272 |
+
|
273 |
+
- **Data Collection**: Our chatbot collects chat logs for the purpose of improving our services and user experience.
|
274 |
+
- **Privacy**: We ensure the confidentiality and security of your data, in line with our privacy policy.
|
275 |
+
- **Survey**: At the end of the chat session, you will be asked to participate in a short survey to gather feedback about your experience.
|
276 |
+
- **Consent**: By checking the box below and initiating the chat, you agree to these terms and the collection of chat logs, and consent to take part in the survey upon completing your session.
|
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])
|