Update app.py
Browse files
app.py
CHANGED
|
@@ -88,9 +88,9 @@ def display_image():
|
|
| 88 |
|
| 89 |
def show_info(topic):
|
| 90 |
responses = {
|
| 91 |
-
"General Health":
|
| 92 |
-
"Maternal Mental Health":
|
| 93 |
-
"Domestic Violence":
|
| 94 |
"Postpartum Support": 1-800-994-4773
|
| 95 |
}
|
| 96 |
return responses.get(topic, "Select a topic to see more info.")
|
|
@@ -107,7 +107,7 @@ with gr.Blocks (theme = theme) as chatbot:
|
|
| 107 |
"What should I know about puberty?",
|
| 108 |
"Where can I find my nearest OBGYN?"]
|
| 109 |
)
|
| 110 |
-
title_hotline= "# Select
|
| 111 |
|
| 112 |
with gr.Tabs():
|
| 113 |
with gr.TabItem("Resources"):
|
|
@@ -137,7 +137,7 @@ with gr.Blocks (theme = theme) as chatbot:
|
|
| 137 |
gr.Markdown(title_hotline)
|
| 138 |
gr.Markdown(hotline_text)
|
| 139 |
dropdown = gr.Dropdown(choices=["General Health", "Maternal Mental Health", "Domestic Violence", "Postpartum Support"],
|
| 140 |
-
label="Choose
|
| 141 |
)
|
| 142 |
output = gr.Textbox(label="Hotline Info", interactive=False)
|
| 143 |
|
|
|
|
| 88 |
|
| 89 |
def show_info(topic):
|
| 90 |
responses = {
|
| 91 |
+
"General Health": 1-800-994-9662,
|
| 92 |
+
"Maternal Mental Health": 1-833-852-6262,
|
| 93 |
+
"Domestic Violence": 1-800-799-7233,
|
| 94 |
"Postpartum Support": 1-800-994-4773
|
| 95 |
}
|
| 96 |
return responses.get(topic, "Select a topic to see more info.")
|
|
|
|
| 107 |
"What should I know about puberty?",
|
| 108 |
"Where can I find my nearest OBGYN?"]
|
| 109 |
)
|
| 110 |
+
title_hotline= "# Select To Get Hotline Number"
|
| 111 |
|
| 112 |
with gr.Tabs():
|
| 113 |
with gr.TabItem("Resources"):
|
|
|
|
| 137 |
gr.Markdown(title_hotline)
|
| 138 |
gr.Markdown(hotline_text)
|
| 139 |
dropdown = gr.Dropdown(choices=["General Health", "Maternal Mental Health", "Domestic Violence", "Postpartum Support"],
|
| 140 |
+
label="Choose Your Hotline"
|
| 141 |
)
|
| 142 |
output = gr.Textbox(label="Hotline Info", interactive=False)
|
| 143 |
|