Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ checkpoints = [
|
|
18 |
def download_spacy_model(model="en"):
|
19 |
try:
|
20 |
spacy.load(model)
|
21 |
-
except
|
22 |
spacy.cli.download(model) # type: ignore
|
23 |
return True
|
24 |
|
|
|
18 |
def download_spacy_model(model="en"):
|
19 |
try:
|
20 |
spacy.load(model)
|
21 |
+
except OSError:
|
22 |
spacy.cli.download(model) # type: ignore
|
23 |
return True
|
24 |
|