Spaces:
Runtime error
Runtime error
Commit
·
4c3c133
1
Parent(s):
f3c6f29
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ def fetch_answers(question, clincal_note ):
|
|
12 |
scores = passage_retreival_model.predict(query_paragraph_list)
|
13 |
top_5_indices = scores.argsort()[-5:]
|
14 |
top_5_query_paragraph_list = [query_paragraph_list[i] for i in top_5_indices ]
|
|
|
15 |
|
16 |
top_5_query_paragraph_answer_list = []
|
17 |
for query, passage in top_5_query_paragraph_list:
|
|
|
12 |
scores = passage_retreival_model.predict(query_paragraph_list)
|
13 |
top_5_indices = scores.argsort()[-5:]
|
14 |
top_5_query_paragraph_list = [query_paragraph_list[i] for i in top_5_indices ]
|
15 |
+
top_5_query_paragraph_list.reverse()
|
16 |
|
17 |
top_5_query_paragraph_answer_list = []
|
18 |
for query, passage in top_5_query_paragraph_list:
|