Spaces:
Runtime error
Runtime error
Commit
·
7c2b679
1
Parent(s):
395f535
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def fetch_answers(question, clincal_note ):
|
|
26 |
for query, passage in top_5_query_paragraph_list:
|
27 |
passage_sentences = sentence_segmenter.segment(passage)
|
28 |
answer = qa_model(question = query, context = passage)['answer']
|
29 |
-
evidence_sentence =
|
30 |
for i in range(len(passage_sentences)):
|
31 |
if answer.startswith('.') or answer.startswith(':'):
|
32 |
answer = answer[1:].strip()
|
|
|
26 |
for query, passage in top_5_query_paragraph_list:
|
27 |
passage_sentences = sentence_segmenter.segment(passage)
|
28 |
answer = qa_model(question = query, context = passage)['answer']
|
29 |
+
evidence_sentence = ""
|
30 |
for i in range(len(passage_sentences)):
|
31 |
if answer.startswith('.') or answer.startswith(':'):
|
32 |
answer = answer[1:].strip()
|