Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
6deb349
1
Parent(s):
67af939
windows compatible
Browse files
app.py
CHANGED
@@ -233,7 +233,8 @@ def start_training(
|
|
233 |
# Save the updated config
|
234 |
# generate a random name for the config
|
235 |
random_config_name = str(uuid.uuid4())
|
236 |
-
|
|
|
237 |
with open(config_path, "w") as f:
|
238 |
yaml.dump(config, f)
|
239 |
if is_spaces:
|
|
|
233 |
# Save the updated config
|
234 |
# generate a random name for the config
|
235 |
random_config_name = str(uuid.uuid4())
|
236 |
+
os.makedirs("tmp", exist_ok=True)
|
237 |
+
config_path = f"tmp/{random_config_name}-{slugged_lora_name}.yaml"
|
238 |
with open(config_path, "w") as f:
|
239 |
yaml.dump(config, f)
|
240 |
if is_spaces:
|