Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,6 +128,25 @@ with gr.Blocks(theme=theme, css = css) as demo:
|
|
| 128 |
examples = ["Generate me some strong passwords to use.", "What are some security measures I can take to stay safe online?", "Explain how a data breach works.", "How do I know if a message is a scam or not?"]
|
| 129 |
)
|
| 130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
|
| 132 |
demo.launch()
|
| 133 |
|
|
|
|
| 128 |
examples = ["Generate me some strong passwords to use.", "What are some security measures I can take to stay safe online?", "Explain how a data breach works.", "How do I know if a message is a scam or not?"]
|
| 129 |
)
|
| 130 |
|
| 131 |
+
with gr.Tabs():
|
| 132 |
+
with gr.TabItem("Resources"):
|
| 133 |
+
gr.Markdown("### Resources")
|
| 134 |
+
open_google = gr.Button(value="๐๏ธ Period Tracker", link="https://drive.google.com/file/d/1_KNELAUDLLidwAT3fs2JBuO1yPgMGoDv/view")
|
| 135 |
+
open_google = gr.Button(value="๐ฉ๐ปโ๐ผ New Moms Support Group", link="https://www.instagram.com/firsttimemomsacademy/")
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
with gr.TabItem("Call a Hotline"):
|
| 139 |
+
gr.Markdown(title_hotline)
|
| 140 |
+
#gr.Markdown(hotline_text)
|
| 141 |
+
dropdown = gr.Dropdown(choices=["General Health", "Maternal Mental Health", "Domestic Violence", "Postpartum Support"],
|
| 142 |
+
label="Choose Your Hotline"
|
| 143 |
+
)
|
| 144 |
+
output = gr.Textbox(label="Hotline Info", interactive=False)
|
| 145 |
+
|
| 146 |
+
dropdown.change(fn=show_info, inputs=dropdown, outputs=output)
|
| 147 |
+
#with gr.Tab("Educational PDFs"):
|
| 148 |
+
# gr.Markdown("### ๐ Helpful Resources")
|
| 149 |
+
|
| 150 |
|
| 151 |
demo.launch()
|
| 152 |
|