Spaces:
Running
Running
mehradans92
commited on
Commit
β’
bacf688
1
Parent(s):
1ffc4fe
Update app.py
Browse files
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.
|
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
|