Spaces:
Runtime error
Runtime error
Abhishek Thakur
commited on
Commit
·
fa986fd
1
Parent(s):
fb57672
fix
Browse files
app.py
CHANGED
|
@@ -197,7 +197,7 @@ def start_training(
|
|
| 197 |
# command to run autotrain spacerunner
|
| 198 |
cmd = f"autotrain spacerunner --project-name {slugged_lora_name} --script-path {dataset_folder}"
|
| 199 |
cmd += f" --username {profile.username} --token {oauth_token.token} --backend spaces-l4x1"
|
| 200 |
-
outcome = subprocess.run(cmd)
|
| 201 |
if outcome.returncode == 0:
|
| 202 |
return f"""# Your training has started.
|
| 203 |
## - Training Status: <a href='https://huggingface.co/spaces/{profile.username}/autotrain-{slugged_lora_name}?logs=container'>{profile.username}/autotrain-{slugged_lora_name}</a> <small>(in the logs tab)</small>
|
|
|
|
| 197 |
# command to run autotrain spacerunner
|
| 198 |
cmd = f"autotrain spacerunner --project-name {slugged_lora_name} --script-path {dataset_folder}"
|
| 199 |
cmd += f" --username {profile.username} --token {oauth_token.token} --backend spaces-l4x1"
|
| 200 |
+
outcome = subprocess.run(cmd.split())
|
| 201 |
if outcome.returncode == 0:
|
| 202 |
return f"""# Your training has started.
|
| 203 |
## - Training Status: <a href='https://huggingface.co/spaces/{profile.username}/autotrain-{slugged_lora_name}?logs=container'>{profile.username}/autotrain-{slugged_lora_name}</a> <small>(in the logs tab)</small>
|