Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,9 @@ with col2:
|
|
20 |
|
21 |
|
22 |
if search_query or button_clicked:
|
23 |
-
myquery = parser.parse(search_query)
|
24 |
num_results = None
|
25 |
#search_results = searcher.search(myquery, limit=num_results)
|
26 |
-
search_results = searcher.search(
|
27 |
#st.write(f"<p align=\"right\" style=\"color:grey;\">Retrieved {len(search_results):,.0f} documents in {search_results.runtime*1000:.2f} ms</p>", unsafe_allow_html=True)
|
28 |
for result in search_results[:10]:
|
29 |
#keywords = ', '.join(result.key_terms('text'))
|
|
|
20 |
|
21 |
|
22 |
if search_query or button_clicked:
|
|
|
23 |
num_results = None
|
24 |
#search_results = searcher.search(myquery, limit=num_results)
|
25 |
+
search_results = searcher.search(search_query, k=1000)
|
26 |
#st.write(f"<p align=\"right\" style=\"color:grey;\">Retrieved {len(search_results):,.0f} documents in {search_results.runtime*1000:.2f} ms</p>", unsafe_allow_html=True)
|
27 |
for result in search_results[:10]:
|
28 |
#keywords = ', '.join(result.key_terms('text'))
|