Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer, Trai
|
|
2 |
import torch
|
3 |
from datasets import load_dataset
|
4 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
5 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
7 |
|
8 |
|
9 |
|
|
|
2 |
import torch
|
3 |
from datasets import load_dataset
|
4 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
5 |
+
model = AutoModelForSequenceClassification.from_pretrained("gpt2").to(device)
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("gpt2")
|
7 |
|
8 |
|
9 |
|