Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,10 +99,10 @@ def query_model(question):
|
|
| 99 |
Process a question, find relevant information, and generate a response.
|
| 100 |
"""
|
| 101 |
if question == "":
|
| 102 |
-
return "Welcome to
|
| 103 |
relevant_segment = find_relevant_segment(question, segments)
|
| 104 |
if not relevant_segment:
|
| 105 |
-
return "
|
| 106 |
response = generate_response(question, relevant_segment)
|
| 107 |
return response
|
| 108 |
|
|
|
|
| 99 |
Process a question, find relevant information, and generate a response.
|
| 100 |
"""
|
| 101 |
if question == "":
|
| 102 |
+
return "Welcome to GreenGuide! Input the type of trash that you want to sort, and I will tell you which trash bin to put it in."
|
| 103 |
relevant_segment = find_relevant_segment(question, segments)
|
| 104 |
if not relevant_segment:
|
| 105 |
+
return "Description of trash is too vague. Please refine your question and provide more details."
|
| 106 |
response = generate_response(question, relevant_segment)
|
| 107 |
return response
|
| 108 |
|