rrk757 commited on
Commit
d987a89
·
verified ·
1 Parent(s): a980eb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -45,20 +45,20 @@ 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
  }]
@@ -109,7 +109,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"):
 
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
  }]
 
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"):