Spaces:
Runtime error
Runtime error
Commit
·
4283189
1
Parent(s):
6d34105
Update app.py
Browse files
app.py
CHANGED
@@ -286,8 +286,8 @@ def retrieve_bot_answer(query, loaded_documents):
|
|
286 |
bot_response = qa_bot_instance({"question": query})
|
287 |
# Check if the 'answer' key exists in the bot_response dictionary
|
288 |
if 'answer' in bot_response:
|
289 |
-
answer = bot_response['answer']
|
290 |
-
return
|
291 |
else:
|
292 |
raise KeyError("Expected 'answer' key in bot_response, but it was not found.")
|
293 |
|
|
|
286 |
bot_response = qa_bot_instance({"question": query})
|
287 |
# Check if the 'answer' key exists in the bot_response dictionary
|
288 |
if 'answer' in bot_response:
|
289 |
+
# answer = bot_response['answer']
|
290 |
+
return bot_response
|
291 |
else:
|
292 |
raise KeyError("Expected 'answer' key in bot_response, but it was not found.")
|
293 |
|