hysts commited on
Commit
69d0c54
1 Parent(s): ab95c34

Change the default value for uploading

Browse files
Files changed (1) hide show
  1. app_training.py +2 -1
app_training.py CHANGED
@@ -37,7 +37,8 @@ def create_training_demo(trainer: Trainer,
37
  gr.Markdown('Upload Settings')
38
  with gr.Row():
39
  upload_to_hub = gr.Checkbox(
40
- label='Upload model to Hub', value=False)
 
41
  use_private_repo = gr.Checkbox(label='Private',
42
  value=False)
43
  delete_existing_repo = gr.Checkbox(
 
37
  gr.Markdown('Upload Settings')
38
  with gr.Row():
39
  upload_to_hub = gr.Checkbox(
40
+ label='Upload model to Hub',
41
+ value=bool(os.getenv('SPACE_ID')))
42
  use_private_repo = gr.Checkbox(label='Private',
43
  value=False)
44
  delete_existing_repo = gr.Checkbox(