Flexy0 commited on
Commit
d36a95a
β€’
1 Parent(s): 95c0d20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("facebook/bart-large-cnn").to(device)
6
- tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-cnn")
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