Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ 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 = AutoModelForSequenceClassification.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 |
|
9 |
ds = load_dataset("stanfordnlp/sst2")
|
10 |
|