Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,20 +13,15 @@ import gradio as gr
|
|
13 |
examples = [
|
14 |
"prevoid bladder volume cc postvoid bladder volume cc bladder grossly normal appearance",
|
15 |
"heart mediastinal contours normal left sided subclavian line position tip distal svc lungs remain clear active disease effusions",
|
16 |
-
""
|
17 |
-
heart size normal mediastinal hilar contours remain stable small right pneumothorax remains unchanged surgical lung staples overlying
|
18 |
-
left upper lobe seen linear pattern consistent prior upper lobe resection soft tissue osseous structures appear unremarkable nasogastric
|
19 |
-
endotracheal tubes remain satisfactory position atelectatic changes right lower lung field remain unchanged prior study
|
20 |
-
"""
|
21 |
]
|
22 |
|
23 |
description = """
|
24 |
We fine-tuned the BioBart 440M parameter model on a dataset of 52,000 radiology reports scraped from MIMIC-III specifically for the task of summarization.
|
25 |
-
|
26 |
The model is able to generate impressions summarizing key findings from the longer radiology reports.
|
27 |
-
"""
|
28 |
-
"<b>Enter a radiology report to see the generated impression summary!</b>"
|
29 |
|
|
|
|
|
30 |
|
31 |
def summarize(radiology_report):
|
32 |
summary = summarizer(radiology_report)[0]['summary_text']
|
|
|
13 |
examples = [
|
14 |
"prevoid bladder volume cc postvoid bladder volume cc bladder grossly normal appearance",
|
15 |
"heart mediastinal contours normal left sided subclavian line position tip distal svc lungs remain clear active disease effusions",
|
16 |
+
"heart size normal mediastinal hilar contours remain stable small right pneumothorax remains unchanged surgical lung staples overlying left upper lobe seen linear pattern consistent prior upper lobe resection soft tissue osseous structures appear unremarkable nasogastric endotracheal tubes remain satisfactory position atelectatic changes right lower lung field remain unchanged prior study"
|
|
|
|
|
|
|
|
|
17 |
]
|
18 |
|
19 |
description = """
|
20 |
We fine-tuned the BioBart 440M parameter model on a dataset of 52,000 radiology reports scraped from MIMIC-III specifically for the task of summarization.
|
|
|
21 |
The model is able to generate impressions summarizing key findings from the longer radiology reports.
|
|
|
|
|
22 |
|
23 |
+
Enter a radiology report to see the generated impression summary!
|
24 |
+
"""
|
25 |
|
26 |
def summarize(radiology_report):
|
27 |
summary = summarizer(radiology_report)[0]['summary_text']
|