Spaces:
Runtime error
Runtime error
Rzhishchev
commited on
Commit
•
c835ca5
1
Parent(s):
ddd05fe
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torch
|
|
4 |
|
5 |
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
6 |
|
7 |
-
model_path = "/
|
8 |
tokenizer = GPT2Tokenizer.from_pretrained(model_path)
|
9 |
model = GPT2LMHeadModel.from_pretrained(model_path).to(DEVICE)
|
10 |
|
|
|
4 |
|
5 |
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
6 |
|
7 |
+
model_path = "/zhvanetsky_model"
|
8 |
tokenizer = GPT2Tokenizer.from_pretrained(model_path)
|
9 |
model = GPT2LMHeadModel.from_pretrained(model_path).to(DEVICE)
|
10 |
|