Spaces:
Runtime error
Runtime error
Commit
·
5dd1487
1
Parent(s):
d4fb40d
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def fetch_answers(question, clincal_note ):
|
|
18 |
count = 1
|
19 |
for query, passage in top_5_query_paragraph_list:
|
20 |
answer = qa_model(question = query, context = passage)['answer']
|
21 |
-
result_str = "#RESULT "+str(count)+"
|
22 |
-
result_str = result_str + passage.replace(answer,"**"+answer+"**") + "\n\n"
|
23 |
top_5_query_paragraph_answer_list += result_str
|
24 |
count+=1
|
25 |
|
|
|
18 |
count = 1
|
19 |
for query, passage in top_5_query_paragraph_list:
|
20 |
answer = qa_model(question = query, context = passage)['answer']
|
21 |
+
result_str = "# RESULT "+str(count)+"\n"
|
22 |
+
result_str = result_str + passage.replace(answer,"**"+answer.replace('.','')+"**") + "\n\n"
|
23 |
top_5_query_paragraph_answer_list += result_str
|
24 |
count+=1
|
25 |
|