Commit
•
e0e9e9a
1
Parent(s):
1a3a15c
Update app.py
Browse files
app.py
CHANGED
@@ -443,7 +443,12 @@ with gr.Blocks(css=css) as demo:
|
|
443 |
training_summary_where_to_upload = gr.Dropdown(["My personal profile", "Public Library"], label="Upload to", visible=False)
|
444 |
training_summary_token_message = gr.Markdown("[A Hugging Face write access token](https://huggingface.co/settings/tokens), go to \"New token\" -> Role : Write. A regular read token won't work here.", visible=False)
|
445 |
training_summary_token = gr.Textbox(label="Hugging Face Write Token", type="password", visible=False)
|
446 |
-
|
|
|
|
|
|
|
|
|
|
|
447 |
train_btn = gr.Button("Start Training")
|
448 |
|
449 |
training_ongoing = gr.Markdown("## Training is ongoing ⌛... You can close this tab if you like or just wait. If you did not check the `Remove GPU After training`, you can come back here to try your model and upload it after training. Don't forget to remove the GPU attribution after you are done. ", visible=False)
|
|
|
443 |
training_summary_where_to_upload = gr.Dropdown(["My personal profile", "Public Library"], label="Upload to", visible=False)
|
444 |
training_summary_token_message = gr.Markdown("[A Hugging Face write access token](https://huggingface.co/settings/tokens), go to \"New token\" -> Role : Write. A regular read token won't work here.", visible=False)
|
445 |
training_summary_token = gr.Textbox(label="Hugging Face Write Token", type="password", visible=False)
|
446 |
+
else:
|
447 |
+
training_summary_checkbox = False
|
448 |
+
training_summary_model_name = ''
|
449 |
+
training_summary_where_to_upload = "My person profile"
|
450 |
+
training_summary_token_message = ""
|
451 |
+
training_summary_token = ""
|
452 |
train_btn = gr.Button("Start Training")
|
453 |
|
454 |
training_ongoing = gr.Markdown("## Training is ongoing ⌛... You can close this tab if you like or just wait. If you did not check the `Remove GPU After training`, you can come back here to try your model and upload it after training. Don't forget to remove the GPU attribution after you are done. ", visible=False)
|