Spaces:
Build error
Build error
artem-oneai
commited on
Commit
·
208d628
1
Parent(s):
27e9cd8
Add loading of Ukrainian spaCy
Browse files
app.py
CHANGED
|
@@ -4,6 +4,10 @@ import spacy
|
|
| 4 |
from spacy import displacy
|
| 5 |
import torch
|
| 6 |
from random import randint
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
nlp = spacy.load('uk_core_news_md')
|
| 9 |
|
|
|
|
| 4 |
from spacy import displacy
|
| 5 |
import torch
|
| 6 |
from random import randint
|
| 7 |
+
import os
|
| 8 |
+
|
| 9 |
+
# Run OS scripts to download Ukrainian spaCy
|
| 10 |
+
os.system("python -m spacy download uk_core_news_md")
|
| 11 |
|
| 12 |
nlp = spacy.load('uk_core_news_md')
|
| 13 |
|