Spaces:
Sleeping
Sleeping
Update pages/imdb.py
Browse files- pages/imdb.py +1 -1
pages/imdb.py
CHANGED
|
@@ -144,7 +144,7 @@ def main():
|
|
| 144 |
config = AutoConfig.from_pretrained('distilbert-base-uncased', num_labels=2)
|
| 145 |
|
| 146 |
automodel = AutoModelForSequenceClassification.from_config(config)
|
| 147 |
-
|
| 148 |
|
| 149 |
input_tokens = autotoken(
|
| 150 |
review,
|
|
|
|
| 144 |
config = AutoConfig.from_pretrained('distilbert-base-uncased', num_labels=2)
|
| 145 |
|
| 146 |
automodel = AutoModelForSequenceClassification.from_config(config)
|
| 147 |
+
autotoken = transformers.AutoTokenizer.from_pretrained('distilbert-base-uncased-finetuned-sst-2-english')
|
| 148 |
|
| 149 |
input_tokens = autotoken(
|
| 150 |
review,
|