Omnibus commited on
Commit
f8d5fc8
·
1 Parent(s): 5644a30

Update dl.py

Browse files
Files changed (1) hide show
  1. dl.py +9 -1
dl.py CHANGED
@@ -90,9 +90,17 @@ def show_f(repo,name,token):
90
 
91
  runtime_json=api.get_space_runtime(f'{repo}/{name}')
92
  print(dir(runtime_json))
 
 
 
 
 
 
 
93
  with open(f'{uid}-tmp.json','w') as f:
94
- json.dump(runtime_json,f,indent=4)
95
  f.close()
 
96
  return(gr.Dropdown.update(label="Files", choices=[f for f in f_ist],interactive=True),
97
  file_list,
98
  gr.update(choices=[f for f in f_ist],interactive=True),
 
90
 
91
  runtime_json=api.get_space_runtime(f'{repo}/{name}')
92
  print(dir(runtime_json))
93
+ print(runtime_json.hardware)
94
+ print(runtime_json.raw)
95
+ print(runtime_json.requested_hardware)
96
+ print(runtime_json.sleep_time)
97
+ print(runtime_json.stage)
98
+ print(runtime_json.storage)
99
+
100
  with open(f'{uid}-tmp.json','w') as f:
101
+ json.dump(runtime_json.raw,f,indent=4)
102
  f.close()
103
+
104
  return(gr.Dropdown.update(label="Files", choices=[f for f in f_ist],interactive=True),
105
  file_list,
106
  gr.update(choices=[f for f in f_ist],interactive=True),