mehradans92 commited on
Commit
bacf688
β€’
1 Parent(s): 1ffc4fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ def answer_callback(question_query, word_count):
95
  print(list(zip(pdf_paths, pdf_citations)))
96
  for d, c in zip(pdf_paths, pdf_citations):
97
  docs.add(d, c)
98
- docs._build_faiss_index()
99
  answer = docs.query(question_query, length_prompt=f'use {word_count:d} words')
100
  st.success('Voila! πŸ˜ƒ')
101
  return answer.formatted_answer
 
95
  print(list(zip(pdf_paths, pdf_citations)))
96
  for d, c in zip(pdf_paths, pdf_citations):
97
  docs.add(d, c)
98
+ docs._build_texts_index()
99
  answer = docs.query(question_query, length_prompt=f'use {word_count:d} words')
100
  st.success('Voila! πŸ˜ƒ')
101
  return answer.formatted_answer