Spaces:
Build error
Build error
gopiashokan
commited on
Upload app.py
Browse files
app.py
CHANGED
@@ -145,19 +145,10 @@ streamlit_config()
|
|
145 |
|
146 |
|
147 |
# Check 'punkt' Already Downloaded or Not
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
# # Load spaCy model
|
155 |
-
# try:
|
156 |
-
# nlp = spacy.load('en_core_web_lg')
|
157 |
-
# except OSError:
|
158 |
-
# from spacy.cli import download
|
159 |
-
# download('en_core_web_lg')
|
160 |
-
# nlp = spacy.load('en_core_web_lg')
|
161 |
|
162 |
|
163 |
# File uploader to upload the HTML file
|
|
|
145 |
|
146 |
|
147 |
# Check 'punkt' Already Downloaded or Not
|
148 |
+
try:
|
149 |
+
nltk.data.find('tokenizers/punkt')
|
150 |
+
except LookupError:
|
151 |
+
nltk.download('punkt')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
|
153 |
|
154 |
# File uploader to upload the HTML file
|