Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
767e66b
1
Parent(s):
0484b8c
Update app.py
Browse files
app.py
CHANGED
@@ -290,7 +290,7 @@ git+https://github.com/huggingface/datasets.git'''
|
|
290 |
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]
|
291 |
print(subprocess_command)
|
292 |
subprocess.run(subprocess_command)
|
293 |
-
return f"<h2>Your training has started. Run over to <a href='https://huggingface.co/spaces/{username}/autotrain-{slugged_lora_name}'>{username}/autotrain-{slugged_lora_name}</a> to check the status (click the logs tab)</h2>"
|
294 |
|
295 |
def start_training_og(
|
296 |
lora_name,
|
@@ -730,7 +730,7 @@ Grab a Hugging Face <b>write</b> token [here](https://huggingface.co/settings/to
|
|
730 |
gr.Markdown("Your Hugging Face account doesn't have a payment method. Set it up [here](https://huggingface.co/settings/billing/payment) to train your LoRA")
|
731 |
payment_setup = gr.Button("I have set up my payment method")
|
732 |
start = gr.Button("Start training", visible=False)
|
733 |
-
progress_area = gr.HTML("
|
734 |
output_components.insert(1, advanced)
|
735 |
output_components.insert(1, start)
|
736 |
|
@@ -741,7 +741,7 @@ Grab a Hugging Face <b>write</b> token [here](https://huggingface.co/settings/to
|
|
741 |
],
|
742 |
fn=check_token,
|
743 |
inputs=token,
|
744 |
-
outputs=no_payment_method, start
|
745 |
)
|
746 |
use_snr_gamma.change(
|
747 |
lambda x: gr.update(visible=x),
|
|
|
290 |
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]
|
291 |
print(subprocess_command)
|
292 |
subprocess.run(subprocess_command)
|
293 |
+
return f"<h2>Your training has started. Run over to <a href='https://huggingface.co/spaces/{username}/autotrain-{slugged_lora_name}?logs=container'>{username}/autotrain-{slugged_lora_name}</a> to check the status (click the logs tab)</h2>"
|
294 |
|
295 |
def start_training_og(
|
296 |
lora_name,
|
|
|
730 |
gr.Markdown("Your Hugging Face account doesn't have a payment method. Set it up [here](https://huggingface.co/settings/billing/payment) to train your LoRA")
|
731 |
payment_setup = gr.Button("I have set up my payment method")
|
732 |
start = gr.Button("Start training", visible=False)
|
733 |
+
progress_area = gr.HTML("")
|
734 |
output_components.insert(1, advanced)
|
735 |
output_components.insert(1, start)
|
736 |
|
|
|
741 |
],
|
742 |
fn=check_token,
|
743 |
inputs=token,
|
744 |
+
outputs=[no_payment_method, start]
|
745 |
)
|
746 |
use_snr_gamma.change(
|
747 |
lambda x: gr.update(visible=x),
|