cakiki commited on
Commit
eb94c4e
·
1 Parent(s): 867c8b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -22,7 +22,8 @@ with col2:
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'))
 
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=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'))