Update app.py
Browse files44 unmodified lines45464748495051525354555657585960616263646543 unmodified lines10911011111211311411511611711811912012112212312412512612744 unmodified linesclient = InferenceClient("google/gemma-3-27b-it")#def show_obgyn_info(location):#clinics = {# "New York": "NY Clinic A, NY Clinic B, NY Clinic C",# "California": "CA Clinic X, CA Clinic Y, CA Clinic Z",# "Texas": "TX Clinic 1, TX Clinic 2, TX Clinic 3",# "Florida": "FL Clinic Alpha, FL Clinic Beta, FL Clinic Gamma"# }# return clinics.get(location, "Sorry, no clinics found for this location.")#delete if doesnt work, supposed to define fn function#def respond(message,history):# if "nearest obgyn" in message.lower():# Return a custom response (for UI to act on)# return "Sure! Please click on the 'OBGYN Finder' tab above to get started. 🩺", history#obgyn command, delete if it doesn't workmessages = [{"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."}]if history:43 unmodified lineslabel="Choose your state")result_text = gr.Textbox(label="Nearby Clinics")# location_dropdown.change(fn=show_obgyn_info, inputs=location_dropdown, outputs=result_text)#obgyn finder tab# with gr.Tab("Resources"):# gr.Markdown("### Resources")# gr.HTML("""# <a href="https://drive.google.com/file/d/1_KNELAUDLLidwAT3fs2JBuO1yPgMGoDv/view" target="_blank"># <button style="font-size:16px;padding:10px 20px;margin-top:10px;"># 📄 Period Tracker# </button># </a># """)#with gr.Tab("Educational PDFs"):# gr.Markdown("### 📘 Helpful Resources")44 unmodified lines45464748495043 unmodified lines94959697989910044 unmodified linesclient = InferenceClient("google/gemma-3-27b-it")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."}]if history:43 unmodified lineslabel="Choose your state")result_text = gr.Textbox(label="Nearby Clinics")#with gr.Tab("Educational PDFs"):# gr.Markdown("### 📘 Helpful Resources")
app.py-27