Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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}")
|