inoki-giskard commited on
Commit
e71d7e4
1 Parent(s): 77c3f2f

Polish wordings for job interruption

Browse files
Files changed (1) hide show
  1. app_debug.py +4 -2
app_debug.py CHANGED
@@ -95,7 +95,7 @@ def stop_current_job(hf_token):
95
 
96
  # Interrupt and stop the task
97
  pipe.current = None
98
- gr.Info(f"Job {task_uuid} interrupted and stopped by admin.")
99
 
100
 
101
  def get_demo():
@@ -109,7 +109,9 @@ def get_demo():
109
  with gr.Accordion(label="Admin", open=False):
110
  with gr.Row():
111
  hf_write_token_input = gr.Textbox(
112
- label="HF write token", type="password", placeholder=""
 
 
113
  )
114
  with gr.Row():
115
  stop_job_btn = gr.Button(value="Stop current job", variant="stop")
 
95
 
96
  # Interrupt and stop the task
97
  pipe.current = None
98
+ gr.Info(f"Job {task_uuid} interrupted by admin.")
99
 
100
 
101
  def get_demo():
 
109
  with gr.Accordion(label="Admin", open=False):
110
  with gr.Row():
111
  hf_write_token_input = gr.Textbox(
112
+ label="HF write token",
113
+ type="password",
114
+ placeholder="Please input HF_WRITE_TOKEN configured in the current space",
115
  )
116
  with gr.Row():
117
  stop_job_btn = gr.Button(value="Stop current job", variant="stop")