Spaces:
Runtime error
Runtime error
MelikeDulkadir
commited on
Commit
•
3f44762
1
Parent(s):
272c38a
Update app.py
Browse files
app.py
CHANGED
@@ -11,4 +11,7 @@ from datasets import load_dataset
|
|
11 |
imdb = load_dataset("imdb")
|
12 |
|
13 |
from transformers import AutoTokenizer
|
14 |
-
tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
|
|
|
|
|
|
|
11 |
imdb = load_dataset("imdb")
|
12 |
|
13 |
from transformers import AutoTokenizer
|
14 |
+
tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
15 |
+
|
16 |
+
def preprocess_function(examples):
|
17 |
+
return tokenizer(examples["text"], truncation=True)
|