Qilan2 commited on
Commit
f6162b4
·
verified ·
1 Parent(s): ad7f3bb

Update sbx/c.py

Browse files
Files changed (1) hide show
  1. sbx/c.py +1 -1
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}",