Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -274,6 +274,12 @@ def get_space_runtime(author,token):
|
|
274 |
except Exception as e:
|
275 |
print (e)
|
276 |
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
return running,runtime_error,stopped,paused,no_app_file
|
278 |
|
279 |
|
@@ -370,11 +376,16 @@ with gr.Blocks(css=css) as build:
|
|
370 |
gr.Column()
|
371 |
sure_check=gr.Textbox(visible=False,value="")
|
372 |
with gr.Row():
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
|
|
|
|
|
|
|
|
|
|
378 |
|
379 |
dl_checked_btn.click(dl_checked_fn,[r_name,space_check,token],files)
|
380 |
delete_checked_btn.click(ru_sure_fn,None,sure_row)
|
|
|
274 |
except Exception as e:
|
275 |
print (e)
|
276 |
pass
|
277 |
+
running_json=gr.update(label="Running", choices=[f for f in running],interactive=True)
|
278 |
+
runtime_error_json=gr.update(label="Runtime Error", choices=[f for f in runtime_error],interactive=True)
|
279 |
+
stopped_json=gr.update(label="Stopped", choices=[f for f in stopped],interactive=True)
|
280 |
+
paused_json=gr.update(label="Paused", choices=[f for f in paused],interactive=True)
|
281 |
+
no_app_files_json=gr.update(label="No App File", choices=[f for f in no_app_file],interactive=True)
|
282 |
+
|
283 |
return running,runtime_error,stopped,paused,no_app_file
|
284 |
|
285 |
|
|
|
376 |
gr.Column()
|
377 |
sure_check=gr.Textbox(visible=False,value="")
|
378 |
with gr.Row():
|
379 |
+
with gr.Column():
|
380 |
+
running_json=gr.CheckboxGroup()
|
381 |
+
with gr.Column():
|
382 |
+
runtime_error_json=gr.CheckboxGroup()
|
383 |
+
with gr.Column():
|
384 |
+
stopped_json=gr.CheckboxGroup()
|
385 |
+
with gr.Column():
|
386 |
+
paused_json=gr.CheckboxGroup()
|
387 |
+
with gr.Column():
|
388 |
+
no_app_files_json=gr.CheckboxGroup()
|
389 |
|
390 |
dl_checked_btn.click(dl_checked_fn,[r_name,space_check,token],files)
|
391 |
delete_checked_btn.click(ru_sure_fn,None,sure_row)
|