Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -244,13 +244,6 @@ ent_html = displacy.render(doc0, style='ent', options=options)
|
|
244 |
|
245 |
##======================== End of NER Tagging ========================
|
246 |
|
247 |
-
def visualize (run_text,output):
|
248 |
-
text =''
|
249 |
-
splitruntext = [x for x in runtext.split('.')]
|
250 |
-
splitoutput = [x for x in output.split('.')]
|
251 |
-
return splitoutput,splitruntext
|
252 |
-
|
253 |
-
@st.cache
|
254 |
def run_model(input_text):
|
255 |
if model == "BertSummarizer":
|
256 |
output = original_text['BertSummarizer2s'].values
|
|
|
244 |
|
245 |
##======================== End of NER Tagging ========================
|
246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
def run_model(input_text):
|
248 |
if model == "BertSummarizer":
|
249 |
output = original_text['BertSummarizer2s'].values
|