alex-abb commited on
Commit
7bc6dcb
1 Parent(s): 99d2684

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer, Trai
5
 
6
  model = AutoModelForSequenceClassification.from_pretrained("bert-base-uncased", num_labels=2) # 2 classes : positif et négatif
7
  tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
8
- model = BertForSequenceClassification.from_pretrained(model_name, num_labels=2) # 2 classes : positif et négatif
9
 
10
  ds = load_dataset("stanfordnlp/sst2")
11
 
 
5
 
6
  model = AutoModelForSequenceClassification.from_pretrained("bert-base-uncased", num_labels=2) # 2 classes : positif et négatif
7
  tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
8
+ model = AutoModelForSequenceClassification.from_pretrained(model_name, num_labels=2) # 2 classes : positif et négatif
9
 
10
  ds = load_dataset("stanfordnlp/sst2")
11