Omnibus commited on
Commit
9948d1d
1 Parent(s): 547af19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -184,13 +184,13 @@ def load_space_status(r_name,token):
184
  s_ist = (api.list_spaces(author=r_name))
185
  tt=False
186
  #print(dir(s_ist[0]))
187
- out_html="<td><tr><th>Name</th><th>Status</th></tr>"
188
  for i,space in enumerate(s_ist):
189
  space_ea = space.id.split("/",1)[1]
190
- print(dir(space))
191
- print(space.id)
192
- out_html+=f'<tr><td>{space.id}</td><td>{space.id}</td></tr>'
193
- out_html+="</td>"
194
  return out_html
195
  def rebuild_space(r_name,token):
196
  api = HfApi(token=token)
 
184
  s_ist = (api.list_spaces(author=r_name))
185
  tt=False
186
  #print(dir(s_ist[0]))
187
+ out_html="<table><tr><th>Name</th><th>Status</th></tr>"
188
  for i,space in enumerate(s_ist):
189
  space_ea = space.id.split("/",1)[1]
190
+ #print(dir(space))
191
+ #print(space.id)
192
+ out_html+=f'<tr><td>{space.id}</td><td>{space.stage}</td></tr>'
193
+ out_html+="</table>"
194
  return out_html
195
  def rebuild_space(r_name,token):
196
  api = HfApi(token=token)