Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def get_summary(text):
|
|
9 |
return output[0]["summary_text"]
|
10 |
|
11 |
# named entity recognition
|
12 |
-
ner_model =
|
13 |
|
14 |
def gen_ner(text):
|
15 |
output = ner_model(text)
|
|
|
9 |
return output[0]["summary_text"]
|
10 |
|
11 |
# named entity recognition
|
12 |
+
ner_model = pipeline("ner", model = "dslim/bert-large-NER")
|
13 |
|
14 |
def gen_ner(text):
|
15 |
output = ner_model(text)
|