Kevin Fink
commited on
Commit
·
12c1a6f
1
Parent(s):
6d2d54c
deve
Browse files
app.py
CHANGED
@@ -226,8 +226,8 @@ def fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size
|
|
226 |
trainer = Trainer(
|
227 |
model=model,
|
228 |
args=training_args,
|
229 |
-
train_dataset=
|
230 |
-
eval_dataset=
|
231 |
compute_metrics=compute_metrics,
|
232 |
#data_collator=data_collator,
|
233 |
processing_class=tokenizer,
|
|
|
226 |
trainer = Trainer(
|
227 |
model=model,
|
228 |
args=training_args,
|
229 |
+
train_dataset=dataset['train'],
|
230 |
+
eval_dataset=dataset['validation'],
|
231 |
compute_metrics=compute_metrics,
|
232 |
#data_collator=data_collator,
|
233 |
processing_class=tokenizer,
|