stmnk commited on
Commit
e04b4d9
1 Parent(s): bb8fd68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ if st.button('Run keyword search'):
28
  top_5_text = [{'text': hit['_source']['content'][:500],
29
  'confidence': hit['_score']} for hit in top_5_hits ]
30
 
31
- for doc_hit, i in top_5_text:
32
  st.write(f'Search result #{i} (and score):')
33
  st.write(f'... {doc_hit["text"]} ...')
34
  st.write(f'(confidence score: {format(doc_hit["confidence"], ".3f")})')
 
28
  top_5_text = [{'text': hit['_source']['content'][:500],
29
  'confidence': hit['_score']} for hit in top_5_hits ]
30
 
31
+ for i, doc_hit in enumerate(top_5_text):
32
  st.write(f'Search result #{i} (and score):')
33
  st.write(f'... {doc_hit["text"]} ...')
34
  st.write(f'(confidence score: {format(doc_hit["confidence"], ".3f")})')