Spaces:
Sleeping
Sleeping
Commit
·
d0660d6
1
Parent(s):
acec2fa
Use button click API
Browse files- app_debug.py +2 -3
app_debug.py
CHANGED
@@ -110,9 +110,8 @@ def get_demo():
|
|
110 |
hf_write_token_input = gr.Textbox(
|
111 |
label="HF write token", type="password", placeholder=""
|
112 |
)
|
113 |
-
gr.Button(
|
114 |
-
|
115 |
-
)
|
116 |
with gr.Accordion(label="Log Files", open=True):
|
117 |
with gr.Row():
|
118 |
gr.Textbox(
|
|
|
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(
|