Spaces:
Running
Running
Tu Nombre commited on
Commit ·
6fd67de
1
Parent(s): 8c9e0c4
sdk docker para clientes
Browse files
main.py
CHANGED
|
@@ -103,7 +103,7 @@ async def crear_space(nicho: str, email: str) -> str:
|
|
| 103 |
# Crear repo
|
| 104 |
r = await client.post("https://huggingface.co/api/repos/create",
|
| 105 |
headers=headers,
|
| 106 |
-
json={"name": space_id, "type": "space", "sdk": "
|
| 107 |
if r.status_code not in [200, 201]:
|
| 108 |
print(f"Error repo: {r.text}")
|
| 109 |
return None
|
|
|
|
| 103 |
# Crear repo
|
| 104 |
r = await client.post("https://huggingface.co/api/repos/create",
|
| 105 |
headers=headers,
|
| 106 |
+
json={"name": space_id, "type": "space", "sdk": "docker", "private": False})
|
| 107 |
if r.status_code not in [200, 201]:
|
| 108 |
print(f"Error repo: {r.text}")
|
| 109 |
return None
|