hysts HF staff commited on
Commit
e8fb2df
1 Parent(s): c52d629
Files changed (2) hide show
  1. app_training.py +1 -0
  2. app_upload.py +1 -0
app_training.py CHANGED
@@ -47,6 +47,7 @@ def create_training_demo(trainer: Trainer,
47
  visible=False)
48
 
49
  hf_token = gr.Text(label='Hugging Face Write Token',
 
50
  visible=os.getenv('HF_TOKEN') is None)
51
  with gr.Accordion('Advanced settings', open=False):
52
  num_training_steps = gr.Number(
 
47
  visible=False)
48
 
49
  hf_token = gr.Text(label='Hugging Face Write Token',
50
+ type='password',
51
  visible=os.getenv('HF_TOKEN') is None)
52
  with gr.Accordion('Advanced settings', open=False):
53
  num_training_steps = gr.Number(
app_upload.py CHANGED
@@ -38,6 +38,7 @@ def create_upload_demo(disable_run_button: bool = False) -> gr.Blocks:
38
  value=UploadTarget.MODEL_LIBRARY.value)
39
  model_name = gr.Textbox(label='Model Name')
40
  hf_token = gr.Text(label='Hugging Face Write Token',
 
41
  visible=os.getenv('HF_TOKEN') is None)
42
  upload_button = gr.Button('Upload', interactive=not disable_run_button)
43
  gr.Markdown(f'''
 
38
  value=UploadTarget.MODEL_LIBRARY.value)
39
  model_name = gr.Textbox(label='Model Name')
40
  hf_token = gr.Text(label='Hugging Face Write Token',
41
+ type='password',
42
  visible=os.getenv('HF_TOKEN') is None)
43
  upload_button = gr.Button('Upload', interactive=not disable_run_button)
44
  gr.Markdown(f'''