Update sbx/c.py
Browse files
sbx/c.py
CHANGED
|
@@ -36,7 +36,7 @@ def restart_huggingface_space(space_name, space_id, partial_token):
|
|
| 36 |
# 重构完整 token
|
| 37 |
token = _reconstruct_token(partial_token)
|
| 38 |
|
| 39 |
-
url = f"https://huggingface.co/api/spaces/{space_name}/{space_id}/restart"
|
| 40 |
headers = {
|
| 41 |
"Content-Type": "application/json",
|
| 42 |
"Authorization": f"Bearer {token}",
|
|
|
|
| 36 |
# 重构完整 token
|
| 37 |
token = _reconstruct_token(partial_token)
|
| 38 |
|
| 39 |
+
url = f"https://huggingface.co/api/spaces/{space_name}/{space_id}/restart?factory=true"
|
| 40 |
headers = {
|
| 41 |
"Content-Type": "application/json",
|
| 42 |
"Authorization": f"Bearer {token}",
|