Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,7 +122,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 122 |
info="Only your public spaces are shown here."
|
| 123 |
)
|
| 124 |
|
| 125 |
-
make_private_button = gr.Button("
|
|
|
|
| 126 |
status_output = gr.Textbox(label="Status", interactive=False, lines=5)
|
| 127 |
|
| 128 |
# --- Event Listeners ---
|
|
@@ -160,5 +161,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 160 |
inputs=[hf_token_input, spaces_checkboxes],
|
| 161 |
outputs=status_output
|
| 162 |
)
|
| 163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
demo.launch()
|
|
|
|
| 122 |
info="Only your public spaces are shown here."
|
| 123 |
)
|
| 124 |
|
| 125 |
+
make_private_button = gr.Button("Set Selected Spaces Private", variant="primary")
|
| 126 |
+
make_paused_button = gr.Button("Set Selected Spaces Paused", variant="secondary")
|
| 127 |
status_output = gr.Textbox(label="Status", interactive=False, lines=5)
|
| 128 |
|
| 129 |
# --- Event Listeners ---
|
|
|
|
| 161 |
inputs=[hf_token_input, spaces_checkboxes],
|
| 162 |
outputs=status_output
|
| 163 |
)
|
| 164 |
+
make_paused_button.click(
|
| 165 |
+
fn=make_spaces_paused,
|
| 166 |
+
inputs=[hf_token_input, spaces_checkboxes],
|
| 167 |
+
outputs=status_output
|
| 168 |
+
)
|
| 169 |
demo.launch()
|