inoki-giskard commited on
Commit
e5d2c27
1 Parent(s): d0660d6

Put stopping job into admin accordion

Browse files
Files changed (1) hide show
  1. app_debug.py +8 -6
app_debug.py CHANGED
@@ -106,12 +106,14 @@ def get_demo():
106
  value=get_queue_status,
107
  every=5,
108
  )
109
- with gr.Row():
110
- hf_write_token_input = gr.Textbox(
111
- label="HF write token", type="password", placeholder=""
112
- )
113
- stop_job_btn = gr.Button(value="Stop current job")
114
- stop_job_btn.click(stop_current_job, inputs=hf_write_token_input)
 
 
115
  with gr.Accordion(label="Log Files", open=True):
116
  with gr.Row():
117
  gr.Textbox(
 
106
  value=get_queue_status,
107
  every=5,
108
  )
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")
116
+ stop_job_btn.click(stop_current_job, inputs=hf_write_token_input)
117
  with gr.Accordion(label="Log Files", open=True):
118
  with gr.Row():
119
  gr.Textbox(