Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ 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=10)
|
26 |
-
st.write(search_results)
|
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'))
|
|
|
23 |
num_results = None
|
24 |
#search_results = searcher.search(myquery, limit=num_results)
|
25 |
search_results = searcher.search(search_query, k=10)
|
26 |
+
st.write(search_results[0].raw)
|
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'))
|