rrk757 commited on
Commit
1ea5603
·
verified ·
1 Parent(s): f9f3be8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -135,11 +135,12 @@ with gr.Blocks (theme = theme) as chatbot:
135
  with gr.TabItem("Call a Hotline"):
136
  gr.Markdown(title_hotline)
137
  gr.Markdown(hotline_text)
138
- choices=["General Health", "Maternal Mental Health", "Domestic Violence", "Postpartum Support"],
139
  label="Choose your hotline"
140
- result_text = gr.Textbox(label="Hotlines")
141
- # Show response when a choice is made
142
- dropdown.change(fn=show_info, inputs=dropdown, outputs=output)
 
143
  #with gr.Tab("Educational PDFs"):
144
  # gr.Markdown("### 📘 Helpful Resources")
145
 
 
135
  with gr.TabItem("Call a Hotline"):
136
  gr.Markdown(title_hotline)
137
  gr.Markdown(hotline_text)
138
+ dropdown = gr.Dropdown(choices=["General Health", "Maternal Mental Health", "Domestic Violence", "Postpartum Support"],
139
  label="Choose your hotline"
140
+ )
141
+ output = gr.Textbox(label="Hotline Info", interactive=False)
142
+
143
+ dropdown.change(fn=show_info, inputs=dropdown, outputs=output)
144
  #with gr.Tab("Educational PDFs"):
145
  # gr.Markdown("### 📘 Helpful Resources")
146