Omnibus commited on
Commit
96eacbe
1 Parent(s): d057de4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -274,11 +274,11 @@ def get_space_runtime(author,token):
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
 
@@ -326,6 +326,17 @@ with gr.Blocks(css=css) as build:
326
  with gr.Column(scale=1):
327
  files=gr.File(file_count="directory")
328
  with gr.Tab("View 1"):
 
 
 
 
 
 
 
 
 
 
 
329
  with gr.Row():
330
  with gr.Column(scale=1):
331
  with gr.Group():
@@ -375,17 +386,7 @@ with gr.Blocks(css=css) as build:
375
  del_message_box=gr.HTML()
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)
 
274
  except Exception as e:
275
  print (e)
276
  pass
277
+ running=gr.update(label="Running", choices=[f for f in running],interactive=True)
278
+ runtime_error=gr.update(label="Runtime Error", choices=[f for f in runtime_error],interactive=True)
279
+ stopped=gr.update(label="Stopped", choices=[f for f in stopped],interactive=True)
280
+ paused=gr.update(label="Paused", choices=[f for f in paused],interactive=True)
281
+ no_app_files=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
 
 
326
  with gr.Column(scale=1):
327
  files=gr.File(file_count="directory")
328
  with gr.Tab("View 1"):
329
+ with gr.Row():
330
+ with gr.Column():
331
+ running_json=gr.CheckboxGroup()
332
+ with gr.Column():
333
+ runtime_error_json=gr.CheckboxGroup()
334
+ with gr.Column():
335
+ stopped_json=gr.CheckboxGroup()
336
+ with gr.Column():
337
+ paused_json=gr.CheckboxGroup()
338
+ with gr.Column():
339
+ no_app_files_json=gr.CheckboxGroup()
340
  with gr.Row():
341
  with gr.Column(scale=1):
342
  with gr.Group():
 
386
  del_message_box=gr.HTML()
387
  gr.Column()
388
  sure_check=gr.Textbox(visible=False,value="")
389
+
 
 
 
 
 
 
 
 
 
 
390
 
391
  dl_checked_btn.click(dl_checked_fn,[r_name,space_check,token],files)
392
  delete_checked_btn.click(ru_sure_fn,None,sure_row)