Update app.py
Browse files
app.py
CHANGED
|
@@ -45,21 +45,6 @@ def get_top_chunks(query):
|
|
| 45 |
|
| 46 |
client = InferenceClient("google/gemma-3-27b-it")
|
| 47 |
|
| 48 |
-
#def show_obgyn_info(location):
|
| 49 |
-
#clinics = {
|
| 50 |
-
# "New York": "NY Clinic A, NY Clinic B, NY Clinic C",
|
| 51 |
-
# "California": "CA Clinic X, CA Clinic Y, CA Clinic Z",
|
| 52 |
-
# "Texas": "TX Clinic 1, TX Clinic 2, TX Clinic 3",
|
| 53 |
-
# "Florida": "FL Clinic Alpha, FL Clinic Beta, FL Clinic Gamma"
|
| 54 |
-
# }
|
| 55 |
-
# return clinics.get(location, "Sorry, no clinics found for this location.")
|
| 56 |
-
#delete if doesnt work, supposed to define fn function
|
| 57 |
-
|
| 58 |
-
#def respond(message,history):
|
| 59 |
-
# if "nearest obgyn" in message.lower():
|
| 60 |
-
# Return a custom response (for UI to act on)
|
| 61 |
-
# return "Sure! Please click on the 'OBGYN Finder' tab above to get started. 🩺", history
|
| 62 |
-
#obgyn command, delete if it doesn't work
|
| 63 |
messages = [{"role": "system" , "content": "Your name is BloomBot and you're a supportive and helpful chatbot catered towards teens ages 10-18. You give clear kid-appropiate explainations and keep your explainations to 10 sentences maximum."
|
| 64 |
}]
|
| 65 |
if history:
|
|
@@ -109,19 +94,7 @@ with gr.Blocks (theme=theme) as chatbot:
|
|
| 109 |
label="Choose your state"
|
| 110 |
)
|
| 111 |
result_text = gr.Textbox(label="Nearby Clinics")
|
| 112 |
-
# location_dropdown.change(fn=show_obgyn_info, inputs=location_dropdown, outputs=result_text)
|
| 113 |
-
#obgyn finder tab
|
| 114 |
|
| 115 |
-
# with gr.Tab("Resources"):
|
| 116 |
-
# gr.Markdown("### Resources")
|
| 117 |
-
# gr.HTML("""
|
| 118 |
-
# <a href="https://drive.google.com/file/d/1_KNELAUDLLidwAT3fs2JBuO1yPgMGoDv/view" target="_blank">
|
| 119 |
-
# <button style="font-size:16px;padding:10px 20px;margin-top:10px;">
|
| 120 |
-
# 📄 Period Tracker
|
| 121 |
-
# </button>
|
| 122 |
-
# </a>
|
| 123 |
-
# """)
|
| 124 |
-
|
| 125 |
|
| 126 |
#with gr.Tab("Educational PDFs"):
|
| 127 |
# gr.Markdown("### 📘 Helpful Resources")
|
|
|
|
| 45 |
|
| 46 |
client = InferenceClient("google/gemma-3-27b-it")
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
messages = [{"role": "system" , "content": "Your name is BloomBot and you're a supportive and helpful chatbot catered towards teens ages 10-18. You give clear kid-appropiate explainations and keep your explainations to 10 sentences maximum."
|
| 49 |
}]
|
| 50 |
if history:
|
|
|
|
| 94 |
label="Choose your state"
|
| 95 |
)
|
| 96 |
result_text = gr.Textbox(label="Nearby Clinics")
|
|
|
|
|
|
|
| 97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
#with gr.Tab("Educational PDFs"):
|
| 100 |
# gr.Markdown("### 📘 Helpful Resources")
|