Commit
•
4469d41
1
Parent(s):
1b32c70
Removing old split name
Browse files
main.py
CHANGED
@@ -29,7 +29,7 @@ def get_dataset():
|
|
29 |
try:
|
30 |
dataset = load_dataset(dataset_name, download_mode="reuse_cache_if_exists", ignore_verifications=True)
|
31 |
logger.debug("Loading existing dataset")
|
32 |
-
if "__index_level_0__" in dataset["
|
33 |
dataset = dataset.remove_columns(["__index_level_0__"])
|
34 |
except FileNotFoundError:
|
35 |
logger.warning("Creating new dataset")
|
|
|
29 |
try:
|
30 |
dataset = load_dataset(dataset_name, download_mode="reuse_cache_if_exists", ignore_verifications=True)
|
31 |
logger.debug("Loading existing dataset")
|
32 |
+
if "__index_level_0__" in dataset["train"].column_names:
|
33 |
dataset = dataset.remove_columns(["__index_level_0__"])
|
34 |
except FileNotFoundError:
|
35 |
logger.warning("Creating new dataset")
|