Spaces:
Sleeping
Sleeping
Update train_model.py
Browse files- train_model.py +2 -2
train_model.py
CHANGED
@@ -67,9 +67,9 @@ def load_and_prepare_dataset(task, dataset_name, tokenizer, sequence_length):
|
|
67 |
try:
|
68 |
if '/' in dataset_name:
|
69 |
dataset, config = dataset_name.split('/', 1)
|
70 |
-
dataset = load_dataset("
|
71 |
else:
|
72 |
-
dataset = load_dataset("
|
73 |
|
74 |
logging.info("Dataset loaded successfully.")
|
75 |
|
|
|
67 |
try:
|
68 |
if '/' in dataset_name:
|
69 |
dataset, config = dataset_name.split('/', 1)
|
70 |
+
dataset = load_dataset("stanfordnlp/imdb",split='train')
|
71 |
else:
|
72 |
+
dataset = load_dataset("stanfordnlp/imdb",split='train')
|
73 |
|
74 |
logging.info("Dataset loaded successfully.")
|
75 |
|