wylum commited on
Commit
098fda4
·
verified ·
1 Parent(s): a9741d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -329,7 +329,7 @@ def get_response(collection_name, vector_db, qa_chain, history, query, file):
329
  chat_history_tuples.append((message[0], message[1]))
330
 
331
  #vincent added 20250211
332
- if add.count == 0:
333
  collection_name, vector_db, qa_chain = build_qa_chain(collection_name, vector_db, file)
334
  result = qa_chain.invoke(
335
  {"question": query, "chat_history": chat_history_tuples}, return_only_outputs=True
 
329
  chat_history_tuples.append((message[0], message[1]))
330
 
331
  #vincent added 20250211
332
+ if app.count == 0:
333
  collection_name, vector_db, qa_chain = build_qa_chain(collection_name, vector_db, file)
334
  result = qa_chain.invoke(
335
  {"question": query, "chat_history": chat_history_tuples}, return_only_outputs=True