captain-awesome commited on
Commit
22efaa0
1 Parent(s): 81c330c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -280,7 +280,7 @@ def retrieve_bot_answer(query, loaded_documents):
280
  Returns:
281
  dict: The QA bot's response, typically a dictionary with response details.
282
  """
283
- qa_bot_instance = create_retrieval_qa_bot()
284
  bot_response = qa_bot_instance({"query": query})
285
  return bot_response
286
 
 
280
  Returns:
281
  dict: The QA bot's response, typically a dictionary with response details.
282
  """
283
+ qa_bot_instance = create_retrieval_qa_bot(loaded_documents)
284
  bot_response = qa_bot_instance({"query": query})
285
  return bot_response
286