multimodalart HF staff commited on
Commit
d1442c6
1 Parent(s): 0688e12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -534,8 +534,10 @@ with gr.Blocks(css=css) as demo:
534
  training_summary_token = gr.Textbox(label="Hugging Face Write Token", type="password", visible=False)
535
 
536
  train_btn = gr.Button("Start Training")
537
-
538
- 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)
 
 
539
 
540
  #Post-training UI
541
  completed_training = gr.Markdown('''# ✅ Training completed.
 
534
  training_summary_token = gr.Textbox(label="Hugging Face Write Token", type="password", visible=False)
535
 
536
  train_btn = gr.Button("Start Training")
537
+ if(is_shared_ui):
538
+ training_ongoing = gr.Markdown("## This Space only works in duplicated instances. Please duplicate it and try again!", visible=False)
539
+ else:
540
+ 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)
541
 
542
  #Post-training UI
543
  completed_training = gr.Markdown('''# ✅ Training completed.