rahgadda commited on
Commit
6c1d7bb
·
1 Parent(s): 9cf2ba7

Initial Draft

Browse files
Files changed (1) hide show
  1. 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 i, example in enumerate(dataset[split]):
30
- file_content = example['column_name'] # Replace 'column_name' with the actual column containing file data
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