MelikeDulkadir commited on
Commit
f4731d9
1 Parent(s): 5108918

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -19,4 +19,7 @@ def preprocess_function(examples):
19
  tokenized_imdb = imdb.map(preprocess_function, batched=True)
20
 
21
  from transformers import DataCollatorWithPadding
22
- data_collator = DataCollatorWithPadding(tokenizer=tokenizer)
 
 
 
 
19
  tokenized_imdb = imdb.map(preprocess_function, batched=True)
20
 
21
  from transformers import DataCollatorWithPadding
22
+ data_collator = DataCollatorWithPadding(tokenizer=tokenizer)
23
+
24
+ from transformers import AutoModelForSequenceClassification, TrainingArguments, Trainer
25
+ model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased", num_labels=2)