Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
from PIL import Image
|
3 |
import spacy
|
@@ -55,7 +56,7 @@ def extract_person_names(sentence):
|
|
55 |
list: List of person names extracted from the sentence.
|
56 |
"""
|
57 |
# Load English language model
|
58 |
-
nlp =
|
59 |
|
60 |
# Process the sentence using spaCy
|
61 |
doc = nlp(sentence)
|
|
|
1 |
+
!pip install https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl
|
2 |
import streamlit as st
|
3 |
from PIL import Image
|
4 |
import spacy
|
|
|
56 |
list: List of person names extracted from the sentence.
|
57 |
"""
|
58 |
# Load English language model
|
59 |
+
nlp = spacy.load("en_core_web_sm")
|
60 |
|
61 |
# Process the sentence using spaCy
|
62 |
doc = nlp(sentence)
|