Spaces:
Runtime error
Runtime error
Commit
•
ee56a96
1
Parent(s):
bb923fe
Update app.py
Browse files
app.py
CHANGED
@@ -304,7 +304,7 @@ git+https://github.com/huggingface/datasets.git'''
|
|
304 |
# The subprocess call for autotrain spacerunner
|
305 |
api = HfApi(token=token)
|
306 |
username = api.whoami()["name"]
|
307 |
-
subprocess_command = ["autotrain", "spacerunner", "--project-name", slugged_lora_name, "--script-path", spacerunner_folder, "--username", username, "--token", token, "--backend", "spaces-a10gs", "--env","HF_TOKEN=
|
308 |
outcome = subprocess.run(subprocess_command)
|
309 |
if(outcome.returncode == 0):
|
310 |
return f"""# Your training has started.
|
|
|
304 |
# The subprocess call for autotrain spacerunner
|
305 |
api = HfApi(token=token)
|
306 |
username = api.whoami()["name"]
|
307 |
+
subprocess_command = ["autotrain", "spacerunner", "--project-name", slugged_lora_name, "--script-path", spacerunner_folder, "--username", username, "--token", token, "--backend", "spaces-a10gs", "--env",f"HF_TOKEN={token};HF_HUB_ENABLE_HF_TRANSFER=1", "--args", spacerunner_args]
|
308 |
outcome = subprocess.run(subprocess_command)
|
309 |
if(outcome.returncode == 0):
|
310 |
return f"""# Your training has started.
|