Update app.py
Browse files45 unmodified lines4647484950515253545536 unmodified lines929394959697989910010110210310410510610745 unmodified linesclient = InferenceClient("google/gemma-3-27b-it")
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 work 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:36 unmodified lines "What should I know about puberty?", "Where can I find my nearest OBGYN?"] ) with gr.Tab("OBGYN Finder") as obgyn_tab: gr.Markdown("### Find a Nearby OBGYN") location_dropdown = gr.Dropdown( choices=["New York", "California", "Texas", "Florida"], label="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("""app.py+14