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

Update dl.py

Browse files
Files changed (1) hide show
  1. dl.py +2 -1
dl.py CHANGED
@@ -89,6 +89,7 @@ def show_f(repo,name,token):
89
  file_list.append(f'{name}.zip')
90
 
91
  runtime_json=api.get_space_runtime(f'{repo}/{name}')
 
92
  with open(f'{uid}-tmp.json','w') as f:
93
  json.dump(runtime_json,f,indent=4)
94
  f.close()
@@ -96,7 +97,7 @@ def show_f(repo,name,token):
96
  file_list,
97
  gr.update(choices=[f for f in f_ist],interactive=True),
98
  api.space_info(f'{repo}/{name}',files_metadata=True),
99
- f'{uid}-tmp.json')
100
 
101
  def show_f2(repo,name,token):
102
  api = HfApi(token=token)
 
89
  file_list.append(f'{name}.zip')
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()
 
97
  file_list,
98
  gr.update(choices=[f for f in f_ist],interactive=True),
99
  api.space_info(f'{repo}/{name}',files_metadata=True),
100
+ runtime_json)
101
 
102
  def show_f2(repo,name,token):
103
  api = HfApi(token=token)