Spaces:
Runtime error
Runtime error
Update app.py
Browse files3 unmodified lines4567891011121314151617181975 unmodified lines95969798991001011021031041051061071083 unmodified linesclient = InferenceClient("google/gemma-3-27b-it")#this is where you change the LLMdef 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 functiondef respond(message,history):if "nearest obgyn" in message.lower():# Return a custom response (for UI to act on)75 unmodified lines# Show response when a choice is madedropdown.change(fn=show_info, inputs=dropdown, outputs=output)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")demo.launch(debug=True)#added code for blocks3 unmodified lines45678975 unmodified lines8586878889903 unmodified linesclient = InferenceClient("google/gemma-3-27b-it")#this is where you change the LLMdef respond(message,history):if "nearest obgyn" in message.lower():# Return a custom response (for UI to act on)75 unmodified lines# Show response when a choice is madedropdown.change(fn=show_info, inputs=dropdown, outputs=output)demo.launch(debug=True)#added code for blocks
app.py-18