shripadbhat commited on
Commit
5c947fb
·
1 Parent(s): a6224b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def fetch_answers(question, clincal_note ):
11
  query_paragraph_list = [(question, para) for para in clincal_note_paragraphs ]
12
 
13
  scores = passage_retreival_model.predict(query_paragraph_list)
14
- top_5_indices = scores.argsort()[:5]
15
  query_paragraph_list = np.array(query_paragraph_list)
16
  top_5_query_paragraph_list = query_paragraph_list[top_5_indices]
17
 
 
11
  query_paragraph_list = [(question, para) for para in clincal_note_paragraphs ]
12
 
13
  scores = passage_retreival_model.predict(query_paragraph_list)
14
+ top_5_indices = scores.argsort()[-5:]
15
  query_paragraph_list = np.array(query_paragraph_list)
16
  top_5_query_paragraph_list = query_paragraph_list[top_5_indices]
17