Update app.py
Browse files
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 |
-
|
| 141 |
-
|
| 142 |
-
|
|
|
|
| 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 |
|