Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ async def handle_chat(user_input):
|
|
138 |
search_end_time = time.time()
|
139 |
|
140 |
if len(results)==0:
|
141 |
-
|
142 |
documents = [desc.replace('<strong>', '').replace('</strong>', '') for _, desc, _ in results]
|
143 |
|
144 |
context = "\n".join(documents)
|
|
|
138 |
search_end_time = time.time()
|
139 |
|
140 |
if len(results)==0:
|
141 |
+
return "I'm sorry but I don't have any information on that.", ""
|
142 |
documents = [desc.replace('<strong>', '').replace('</strong>', '') for _, desc, _ in results]
|
143 |
|
144 |
context = "\n".join(documents)
|