Spaces:
Sleeping
Sleeping
Initial Draft
Browse files- Dashboard.py +2 -5
Dashboard.py
CHANGED
|
@@ -26,11 +26,8 @@ def save_dataset():
|
|
| 26 |
|
| 27 |
# Iterate through the dataset and save each file to the data folder
|
| 28 |
for split in dataset.keys():
|
| 29 |
-
for
|
| 30 |
-
|
| 31 |
-
file_name = f"{split}_{i}.txt" # Create a unique file name
|
| 32 |
-
file_path = os.path.join(output_directory, file_name)
|
| 33 |
-
|
| 34 |
with open(file_path, 'w', encoding='utf-8') as file:
|
| 35 |
file.write(file_content)
|
| 36 |
|
|
|
|
| 26 |
|
| 27 |
# Iterate through the dataset and save each file to the data folder
|
| 28 |
for split in dataset.keys():
|
| 29 |
+
for file_name, file_content in enumerate(dataset[split]):
|
| 30 |
+
file_path = os.path.join(output_directory, file_name)
|
|
|
|
|
|
|
|
|
|
| 31 |
with open(file_path, 'w', encoding='utf-8') as file:
|
| 32 |
file.write(file_content)
|
| 33 |
|