Spaces:
Runtime error
Runtime error
Commit
·
e20081e
1
Parent(s):
3e27b3e
Update app.py
Browse files
app.py
CHANGED
@@ -232,7 +232,6 @@ def start_training(
|
|
232 |
"cache_latents",
|
233 |
"push_to_hub",
|
234 |
]
|
235 |
-
slugged_lora_name
|
236 |
# Adding optional flags
|
237 |
if optimizer == "8bitadam":
|
238 |
commands.append("use_8bit_adam")
|
@@ -286,7 +285,7 @@ git+https://github.com/huggingface/datasets.git'''
|
|
286 |
subprocess_command = ["autotrain", "spacerunner", "--project-name", slugged_lora_name, "--script-path", spacerunner_folder, "--username", username, "--token", token, "--backend", "spaces-a10gl", "--env","HF_TOKEN=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;HF_HUB_ENABLE_HF_TRANSFER=1", "--args", spacerunner_args]
|
287 |
print(subprocess_command)
|
288 |
subprocess.run(subprocess_command)
|
289 |
-
return f"Your training has started. Run over to <a href='https://huggingface.co/spaces/{username}/slugged_lora_name'>{username}/slugged_lora_name</a> to check the status (click the logs tab)"
|
290 |
|
291 |
def start_training_og(
|
292 |
lora_name,
|
|
|
232 |
"cache_latents",
|
233 |
"push_to_hub",
|
234 |
]
|
|
|
235 |
# Adding optional flags
|
236 |
if optimizer == "8bitadam":
|
237 |
commands.append("use_8bit_adam")
|
|
|
285 |
subprocess_command = ["autotrain", "spacerunner", "--project-name", slugged_lora_name, "--script-path", spacerunner_folder, "--username", username, "--token", token, "--backend", "spaces-a10gl", "--env","HF_TOKEN=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;HF_HUB_ENABLE_HF_TRANSFER=1", "--args", spacerunner_args]
|
286 |
print(subprocess_command)
|
287 |
subprocess.run(subprocess_command)
|
288 |
+
return f"<h2>Your training has started. Run over to <a href='https://huggingface.co/spaces/{username}/{slugged_lora_name}'>{username}/{slugged_lora_name}</a> to check the status (click the logs tab)</h2>"
|
289 |
|
290 |
def start_training_og(
|
291 |
lora_name,
|