Spaces:
Running
Running
Tu Nombre commited on
Commit ·
d18146c
1
Parent(s): 5d03516
intentar restart con factory
Browse files
main.py
CHANGED
|
@@ -1013,7 +1013,7 @@ async def oauth_callback(code: str, state: str):
|
|
| 1013 |
print(f"Token upload: {r.status_code} {r.text[:200]}", flush=True)
|
| 1014 |
# Reiniciar Space del cliente para que lea el token
|
| 1015 |
r2 = await client.post(
|
| 1016 |
-
f"https://huggingface.co/api/spaces/{space_repo}/restart",
|
| 1017 |
headers={"Authorization": f"Bearer {hf_token_repo}"}
|
| 1018 |
)
|
| 1019 |
print(f"Restart: {r2.status_code}", flush=True)
|
|
|
|
| 1013 |
print(f"Token upload: {r.status_code} {r.text[:200]}", flush=True)
|
| 1014 |
# Reiniciar Space del cliente para que lea el token
|
| 1015 |
r2 = await client.post(
|
| 1016 |
+
f"https://huggingface.co/api/spaces/{space_repo}/restart?factory=true",
|
| 1017 |
headers={"Authorization": f"Bearer {hf_token_repo}"}
|
| 1018 |
)
|
| 1019 |
print(f"Restart: {r2.status_code}", flush=True)
|