Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def do_ask(question, button, openapi, dataset, length, do_marg, k, max_sources,
|
|
74 |
else:
|
75 |
yield "", "", "", docs, [[0, 0]]
|
76 |
#progress(0, "Building Index...")
|
77 |
-
docs.
|
78 |
#progress(0.25, "Querying...")
|
79 |
for i, result in enumerate(docs.query_gen(question,
|
80 |
length_prompt=f'use {length:d} words',
|
|
|
74 |
else:
|
75 |
yield "", "", "", docs, [[0, 0]]
|
76 |
#progress(0, "Building Index...")
|
77 |
+
docs._build_texts_index()
|
78 |
#progress(0.25, "Querying...")
|
79 |
for i, result in enumerate(docs.query_gen(question,
|
80 |
length_prompt=f'use {length:d} words',
|