Spaces:
Running
Running
aliasgerovs
commited on
Commit
•
595ca00
1
Parent(s):
436ad2b
Updated command.
Browse files
app.py
CHANGED
@@ -260,11 +260,12 @@ print("loading depth analysis")
|
|
260 |
nltk.download('stopwords')
|
261 |
nltk.download('punkt')
|
262 |
command = ['python', '-m', 'spacy', 'download', 'en_core_web_sm']
|
263 |
-
nlp = spacy.load("en_core_web_sm")
|
264 |
|
265 |
# Execute the command
|
266 |
subprocess.run(command)
|
267 |
|
|
|
|
|
268 |
# for perplexity
|
269 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
270 |
model_id = "gpt2"
|
|
|
260 |
nltk.download('stopwords')
|
261 |
nltk.download('punkt')
|
262 |
command = ['python', '-m', 'spacy', 'download', 'en_core_web_sm']
|
|
|
263 |
|
264 |
# Execute the command
|
265 |
subprocess.run(command)
|
266 |
|
267 |
+
nlp = spacy.load("en_core_web_sm")
|
268 |
+
|
269 |
# for perplexity
|
270 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
271 |
model_id = "gpt2"
|