Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import spacy
|
|
8 |
from spacy import displacy
|
9 |
from spacy.lang.en import English
|
10 |
import en_ner_bc5cdr_md
|
11 |
-
|
12 |
|
13 |
from streamlit.components.v1 import html
|
14 |
|
@@ -127,11 +127,11 @@ runtext =st.text_area(inputNote, str(original_text2), height=300)
|
|
127 |
|
128 |
def visualize (run_text,output):
|
129 |
text =''
|
130 |
-
import en_core_web_sm
|
131 |
-
from spacy.lang.en import English # updated
|
132 |
-
nlp=spacy.load('en_core_web_sm')
|
133 |
-
sentences=run_text.split('.')
|
134 |
-
summary=output.split('.')
|
135 |
|
136 |
text = ''
|
137 |
|
|
|
8 |
from spacy import displacy
|
9 |
from spacy.lang.en import English
|
10 |
import en_ner_bc5cdr_md
|
11 |
+
|
12 |
|
13 |
from streamlit.components.v1 import html
|
14 |
|
|
|
127 |
|
128 |
def visualize (run_text,output):
|
129 |
text =''
|
130 |
+
# import en_core_web_sm
|
131 |
+
# from spacy.lang.en import English # updated
|
132 |
+
# nlp=spacy.load('en_core_web_sm')
|
133 |
+
# sentences=run_text.split('.')
|
134 |
+
# summary=output.split('.')
|
135 |
|
136 |
text = ''
|
137 |
|