Update app.py
Browse files
app.py
CHANGED
|
@@ -88,6 +88,7 @@ def respond(message,history):
|
|
| 88 |
def display_image():
|
| 89 |
return "Screenshot 2025-06-12 at 10.53.59 AM.png"
|
| 90 |
|
|
|
|
| 91 |
with gr.Blocks (theme = theme) as chatbot:
|
| 92 |
gr.Image(display_image())
|
| 93 |
gr.ChatInterface(respond, type = "messages", #theme = gr.themes.Soft(
|
|
@@ -101,15 +102,22 @@ with gr.Blocks (theme = theme) as chatbot:
|
|
| 101 |
"What should I know about puberty?",
|
| 102 |
"Where can I find my nearest OBGYN?"]
|
| 103 |
)
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
#with gr.Tab("Educational PDFs"):
|
| 115 |
# gr.Markdown("### 📘 Helpful Resources")
|
|
|
|
| 88 |
def display_image():
|
| 89 |
return "Screenshot 2025-06-12 at 10.53.59 AM.png"
|
| 90 |
|
| 91 |
+
|
| 92 |
with gr.Blocks (theme = theme) as chatbot:
|
| 93 |
gr.Image(display_image())
|
| 94 |
gr.ChatInterface(respond, type = "messages", #theme = gr.themes.Soft(
|
|
|
|
| 102 |
"What should I know about puberty?",
|
| 103 |
"Where can I find my nearest OBGYN?"]
|
| 104 |
)
|
| 105 |
+
title_hotline= "# Select your city to find the nearest hotline"
|
| 106 |
+
hotline_text= """### Placeholder"""
|
| 107 |
+
|
| 108 |
+
with gr.Tabs():
|
| 109 |
+
with gr.TabItem("Resources"):
|
| 110 |
+
gr.Markdown("### Resources")
|
| 111 |
+
gr.HTML("""
|
| 112 |
+
<a href="https://drive.google.com/file/d/1_KNELAUDLLidwAT3fs2JBuO1yPgMGoDv/view" target="_blank">
|
| 113 |
+
# <button style="font-size:16px;padding:10px 20px;margin-top:10px;">
|
| 114 |
+
# 📄 Period Tracker
|
| 115 |
+
# </button>
|
| 116 |
+
</a>
|
| 117 |
+
# """)
|
| 118 |
+
with gr.TabItem("Call a Hotline"):
|
| 119 |
+
gr.Markdown(title_hotline)
|
| 120 |
+
gr.Markdown(hotline_text)
|
| 121 |
|
| 122 |
#with gr.Tab("Educational PDFs"):
|
| 123 |
# gr.Markdown("### 📘 Helpful Resources")
|