Omnibus commited on
Commit
c08f04e
1 Parent(s): 11fd631

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -256,10 +256,11 @@ def get_space_runtime(author,token):
256
  api = HfApi(token=token)
257
  s_list = (api.list_spaces(author=author))
258
  for i,space in enumerate(s_list):
259
- print(space)
260
  try:
261
- space_name=space.split("/",1)[1]
262
- outr=api.get_space_runtime(f'{space.id}')
 
 
263
  if outr.stage=="RUNNING":
264
  running.append(space_name)
265
  if outr.stage=="STOPPED":
 
256
  api = HfApi(token=token)
257
  s_list = (api.list_spaces(author=author))
258
  for i,space in enumerate(s_list):
 
259
  try:
260
+ space_name=space.id.split("/",1)[1]
261
+
262
+ outr=api.get_space_runtime(f'{space.id}')
263
+
264
  if outr.stage=="RUNNING":
265
  running.append(space_name)
266
  if outr.stage=="STOPPED":