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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -317,7 +317,7 @@ def retrieve_bot_answer(query, loaded_documents):
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']
 
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']