Spaces:
Running
Running
aliasgerovs
commited on
Commit
•
d9962e3
1
Parent(s):
155bd85
Updated
Browse files- analysis.py +1 -1
analysis.py
CHANGED
@@ -33,7 +33,7 @@ readability_model_id = params["READABILITY_MODEL_ID"]
|
|
33 |
gpt2_model = GPT2LMHeadModel.from_pretrained(readability_model_id).to(device)
|
34 |
gpt2_tokenizer = GPT2TokenizerFast.from_pretrained(readability_model_id)
|
35 |
|
36 |
-
command = ["
|
37 |
subprocess.run(command)
|
38 |
nlp = spacy.load("en_core_web_sm")
|
39 |
|
|
|
33 |
gpt2_model = GPT2LMHeadModel.from_pretrained(readability_model_id).to(device)
|
34 |
gpt2_tokenizer = GPT2TokenizerFast.from_pretrained(readability_model_id)
|
35 |
|
36 |
+
command = ["python3", "-m", "spacy", "download", "en_core_web_sm"]
|
37 |
subprocess.run(command)
|
38 |
nlp = spacy.load("en_core_web_sm")
|
39 |
|