Spaces:
Runtime error
Runtime error
shripadbhat
commited on
Commit
•
5af06a1
1
Parent(s):
7ba3536
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from sentence_transformers import CrossEncoder
|
|
6 |
sentence_segmenter = pysbd.Segmenter(language='en',clean=False)
|
7 |
passage_retreival_model = CrossEncoder('cross-encoder/ms-marco-MiniLM-L-6-v2')
|
8 |
qa_model = pipeline("question-answering",'a-ware/bart-squadv2')
|
9 |
-
|
10 |
def fetch_answers(question, clincal_note ):
|
11 |
clincal_note_paragraphs = clincal_note.splitlines()
|
12 |
query_paragraph_list = [(question, para) for para in clincal_note_paragraphs if len(para.strip()) > 0 ]
|
|
|
6 |
sentence_segmenter = pysbd.Segmenter(language='en',clean=False)
|
7 |
passage_retreival_model = CrossEncoder('cross-encoder/ms-marco-MiniLM-L-6-v2')
|
8 |
qa_model = pipeline("question-answering",'a-ware/bart-squadv2')
|
9 |
+
|
10 |
def fetch_answers(question, clincal_note ):
|
11 |
clincal_note_paragraphs = clincal_note.splitlines()
|
12 |
query_paragraph_list = [(question, para) for para in clincal_note_paragraphs if len(para.strip()) > 0 ]
|