rrk757 commited on
Commit
5bf2ea3
·
verified ·
1 Parent(s): a811070

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py CHANGED
@@ -4,16 +4,6 @@ import random
4
 
5
  client = InferenceClient("google/gemma-3-27b-it")
6
  #this is where you change the LLM
7
- def show_obgyn_info(location):
8
- clinics = {
9
- "New York": "NY Clinic A, NY Clinic B, NY Clinic C",
10
- "California": "CA Clinic X, CA Clinic Y, CA Clinic Z",
11
- "Texas": "TX Clinic 1, TX Clinic 2, TX Clinic 3",
12
- "Florida": "FL Clinic Alpha, FL Clinic Beta, FL Clinic Gamma"
13
- }
14
- return clinics.get(location, "Sorry, no clinics found for this location.")
15
- #delete if doesnt work, supposed to define fn function
16
-
17
  def respond(message,history):
18
  if "nearest obgyn" in message.lower():
19
  # Return a custom response (for UI to act on)
@@ -95,14 +85,6 @@ with gr.Blocks() as demo:
95
  # Show response when a choice is made
96
  dropdown.change(fn=show_info, inputs=dropdown, outputs=output)
97
 
98
- with gr.Tab("OBGYN Finder") as obgyn_tab:
99
- gr.Markdown("### Find a Nearby OBGYN")
100
- location_dropdown = gr.Dropdown(
101
- choices=["New York", "California", "Texas", "Florida"],
102
- label="Choose your state"
103
- )
104
- result_text = gr.Textbox(label="Nearby Clinics")
105
-
106
  demo.launch(debug=True)
107
  #added code for blocks
108
 
 
4
 
5
  client = InferenceClient("google/gemma-3-27b-it")
6
  #this is where you change the LLM
 
 
 
 
 
 
 
 
 
 
7
  def respond(message,history):
8
  if "nearest obgyn" in message.lower():
9
  # Return a custom response (for UI to act on)
 
85
  # Show response when a choice is made
86
  dropdown.change(fn=show_info, inputs=dropdown, outputs=output)
87
 
 
 
 
 
 
 
 
 
88
  demo.launch(debug=True)
89
  #added code for blocks
90