Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,10 +55,10 @@ default_text = """# Pancreatitis
|
|
55 |
|
56 |
title = "Adverse Drug Reaction Highlighting"
|
57 |
description = "Named Entity Recognition model to detect ADRs in discharge summaries"
|
58 |
-
article = """This app was made to accompany our recent [paper](https://www.medrxiv.org/content/10.1101/2021.12.11.21267504v2)
|
59 |
-
ADRs will be highlighted in <
|
60 |
-
Hover over a word to see the strength of each prediction on a 0-1 scale
|
61 |
-
Our code can be found at [github](https://github.com/AustinMOS/adr-nlp).
|
62 |
"""
|
63 |
|
64 |
ner_model = pipeline(task = 'token-classification', model = "austin/adr-ner")
|
|
|
55 |
|
56 |
title = "Adverse Drug Reaction Highlighting"
|
57 |
description = "Named Entity Recognition model to detect ADRs in discharge summaries"
|
58 |
+
article = """This app was made to accompany our recent [paper](https://www.medrxiv.org/content/10.1101/2021.12.11.21267504v2).
|
59 |
+
ADRs will be highlighted in <span style="color:purple">purple</p>, offending medications in <span style="color:green">green</p>.
|
60 |
+
Hover over a word to see the strength of each prediction on a 0-1 scale.
|
61 |
+
Our training code can be found at [github](https://github.com/AustinMOS/adr-nlp).
|
62 |
"""
|
63 |
|
64 |
ner_model = pipeline(task = 'token-classification', model = "austin/adr-ner")
|