ashimanair commited on
Commit
62295b2
·
verified ·
1 Parent(s): f8605db

please please work part 2

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -45,7 +45,7 @@ def get_top_chunks(query):
45
  top_chunks = []
46
 
47
  for i in top_indices:
48
- chunk = chunks[i]
49
  # for each index number in top_indices, get back the text
50
  top_chunks.append(chunk)
51
 
@@ -99,9 +99,8 @@ with gr.Blocks(css=custom_css) as demo:
99
  "If you are struggling, I am here. You are so beautiful and so loved! I'm here for whatever you need."
100
  ]
101
  )
102
-
103
- #chatbot = gr.ChatInterface(respond, type = 'messages', title= "Hi! I'm Nessie, your personal wellness assistant. What can I assist you with today?",examples=["Can I help you with your dietary goals? I can help you track your calories, macros, and give advice based on personal goals, height, and weight.","Can I help you with your physical health and help you reach your fitness goals? I can give guidance and recommendations for specific workouts based on personal goals.","If you are struggling, I am here. You are so beautiful and so loved! I'm here for whatever you need. "])
104
- chatbot.launch(debug=True)
105
 
106
 
107
 
 
45
  top_chunks = []
46
 
47
  for i in top_indices:
48
+ chunk = cleaned_chunks[i]
49
  # for each index number in top_indices, get back the text
50
  top_chunks.append(chunk)
51
 
 
99
  "If you are struggling, I am here. You are so beautiful and so loved! I'm here for whatever you need."
100
  ]
101
  )
102
+ #chatbot = gr.ChatInterface(respond, type = 'messages', title= "Hi! I'm Nessie, your personal wellness assistant. What can I assist you with today?",examples=["Can I help you with your dietary goals? I can help you track your calories, macros, and give advice based on personal goals, height, and weight.","Can I help you with your physical health and help you reach your fitness goals? I can give guidance and recommendations for specific workouts based on personal goals.","If you are struggling, I am here. You are so beautiful and so loved! I'm here for whatever you need. "])
103
+ chatbot.launch(debug=True)
 
104
 
105
 
106