nateraw commited on
Commit
a0324df
·
1 Parent(s): b1ca621

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def configure_training(this_space_id, csv_data, character, do_extract_vocals=Fal
16
  with tempfile.TemporaryDirectory() as tempdir:
17
  temp_path = Path(tempdir)
18
  (temp_path / 'data.csv').write_text(csv_data)
19
- (temp_path / 'dataset_config.csv').write_text(json.dumps(ds_cfg))
20
  upload_folder(repo_id=this_space_id, folder_path=tempdir, path_in_repo=".", repo_type="space")
21
  print("Would normally upload here!")
22
  print(list(temp_path.glob("*")))
 
16
  with tempfile.TemporaryDirectory() as tempdir:
17
  temp_path = Path(tempdir)
18
  (temp_path / 'data.csv').write_text(csv_data)
19
+ (temp_path / 'dataset_config.json').write_text(json.dumps(ds_cfg, indent=2, sort_keys=False))
20
  upload_folder(repo_id=this_space_id, folder_path=tempdir, path_in_repo=".", repo_type="space")
21
  print("Would normally upload here!")
22
  print(list(temp_path.glob("*")))