Update app.py
Browse files85 unmodified lines868788899091929394959697989910032 unmodified lines13313413512712812913613713813914014114214314414585 unmodified linesdef display_image(): return "Screenshot 2025-06-12 at 10.53.59 AM.png"
def show_info(topic): responses = { "General Health": 18009949662, "Maternal Mental Health": 18338526262, "Domestic Violence": 18007997233, "Postpartum Support": 1-800-994-4773 } return responses.get(topic, "Select a topic to see more info.")
with gr.Blocks (theme = theme) as chatbot: gr.Image(display_image())32 unmodified lines </a> # """) with gr.TabItem("Call a Hotline"): gr.Markdown(title_hotline) gr.Markdown(hotline_text) gr.Markdown(title_hotline) gr.Markdown(hotline_text) choices=["General Health", "Maternal Mental Health", "Domestic Violence", "Postpartum Support"], label="Choose your hotline" result_text = gr.Textbox(label="Hotlines") # Show response when a choice is made dropdown.change(fn=show_info, inputs=dropdown, outputs=output) #with gr.Tab("Educational PDFs"): # gr.Markdown("### 📘 Helpful Resources")
app.py+16-3