Wiinnieee commited on
Commit
c897f8b
·
verified ·
1 Parent(s): 951c416

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -102,7 +102,7 @@ def query_model(question):
102
  return "Welcome to ScholarSage! Ask me anything about college, scholarships, or mentors!"
103
  relevant_segment = find_relevant_segment(question, segments)
104
  if not relevant_segment:
105
- return "Could not find specific information. Please refine your question."
106
  response = generate_response(question, relevant_segment)
107
  return response
108
 
@@ -117,7 +117,6 @@ topics = """
117
  ### Feel Free to ask me anything from the topics below!
118
  - College
119
  - Scholarships
120
- - Mentors
121
  """
122
 
123
  subtopics = """
@@ -132,8 +131,6 @@ subtopics = """
132
  - low income student friendly
133
  - specific to a certain college
134
  - national scholarships
135
- - Mentors
136
- - Socials + Linkedin
137
 
138
 
139
  """
 
102
  return "Welcome to ScholarSage! Ask me anything about college, scholarships, or mentors!"
103
  relevant_segment = find_relevant_segment(question, segments)
104
  if not relevant_segment:
105
+ return "Sorry, I couldn't find this information! Please refine your question."
106
  response = generate_response(question, relevant_segment)
107
  return response
108
 
 
117
  ### Feel Free to ask me anything from the topics below!
118
  - College
119
  - Scholarships
 
120
  """
121
 
122
  subtopics = """
 
131
  - low income student friendly
132
  - specific to a certain college
133
  - national scholarships
 
 
134
 
135
 
136
  """