broadfield-dev commited on
Commit
8f4a78c
Β·
verified Β·
1 Parent(s): 68e6e0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def make_spaces_paused(hf_token, selected_spaces, progress=gr.Progress()):
68
  # --- THIS IS THE FIX ---
69
  # We must explicitly tell the API that this is a 'space'.
70
  if not space_id == this_space:
71
- api.pause_space()
72
  log_messages.append(f"βœ… Successfully made '{space_id}' paused.")
73
  except Exception as e:
74
  log_messages.append(f"❌ Failed to make '{space_id}' paused: {e}")
 
68
  # --- THIS IS THE FIX ---
69
  # We must explicitly tell the API that this is a 'space'.
70
  if not space_id == this_space:
71
+ api.pause_space(repo_id=space_id)
72
  log_messages.append(f"βœ… Successfully made '{space_id}' paused.")
73
  except Exception as e:
74
  log_messages.append(f"❌ Failed to make '{space_id}' paused: {e}")