Spaces:
Paused
Paused
Update app.py
Browse files
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.
|
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("*")))
|