Update app.py
Browse files
app.py
CHANGED
@@ -253,8 +253,8 @@ with gr.Blocks() as app:
|
|
253 |
gender = gr.Dropdown(choices=["Male", "Female", "Other", "Prefer Not To Say"], label="Gender")
|
254 |
age = gr.Textbox(label="Age")
|
255 |
submit_info = gr.Button("Submit")
|
256 |
-
|
257 |
-
submit_info.click(submit_user_info, inputs=[name, occupation, yearsofexp, ethnicity, gender, age], outputs=[
|
258 |
|
259 |
with gr.Tab("Chat Bot"):
|
260 |
chatbot = gr.Chatbot()
|
|
|
253 |
gender = gr.Dropdown(choices=["Male", "Female", "Other", "Prefer Not To Say"], label="Gender")
|
254 |
age = gr.Textbox(label="Age")
|
255 |
submit_info = gr.Button("Submit")
|
256 |
+
status_textbox = gr.Textbox(label="Status", interactive = False)
|
257 |
+
submit_info.click(submit_user_info, inputs=[name, occupation, yearsofexp, ethnicity, gender, age], outputs=[status_textbox])
|
258 |
|
259 |
with gr.Tab("Chat Bot"):
|
260 |
chatbot = gr.Chatbot()
|