Spaces:
Running
Running
eljanmahammadli
commited on
Commit
•
d0177bd
1
Parent(s):
5eee1b2
update
Browse files
app.py
CHANGED
@@ -266,8 +266,6 @@ command = ['python', '-m', 'spacy', 'download', 'en_core_web_sm']
|
|
266 |
subprocess.run(command)
|
267 |
nlp = spacy.load("en_core_web_sm")
|
268 |
|
269 |
-
nlp = spacy.load("en_core_web_sm")
|
270 |
-
|
271 |
# for perplexity
|
272 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
273 |
model_id = "gpt2"
|
|
|
266 |
subprocess.run(command)
|
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"
|