captain-awesome commited on
Commit
4bd505a
·
1 Parent(s): 3d8ccd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -316,7 +316,8 @@ def retrieve_bot_answer(query, loaded_documents):
316
  dict: The QA bot's response, typically a dictionary with response details.
317
  """
318
  qa_bot_instance = create_retrieval_qa_bot(loaded_documents)
319
- bot_response = qa_bot_instance({"question": query})
 
320
  # Check if the 'answer' key exists in the bot_response dictionary
321
  # if 'answer' in bot_response:
322
  # # answer = bot_response['answer']
 
316
  dict: The QA bot's response, typically a dictionary with response details.
317
  """
318
  qa_bot_instance = create_retrieval_qa_bot(loaded_documents)
319
+ # bot_response = qa_bot_instance({"question": query})
320
+ bot_response = qa_bot_instance({"{'query':": query})
321
  # Check if the 'answer' key exists in the bot_response dictionary
322
  # if 'answer' in bot_response:
323
  # # answer = bot_response['answer']