Spaces:
Build error
Build error
docker sdk
Browse files
app.py
CHANGED
@@ -98,7 +98,13 @@ def sync_ci_space(space_id: str, pr_num: int, private=bool) -> None:
|
|
98 |
ci_space_id = _get_ci_space_id(space_id=space_id, pr_num=pr_num)
|
99 |
|
100 |
try:
|
101 |
-
create_repo(
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
is_new = True
|
103 |
except HTTPError as err:
|
104 |
if err.response.status_code == 409: # already exists
|
|
|
98 |
ci_space_id = _get_ci_space_id(space_id=space_id, pr_num=pr_num)
|
99 |
|
100 |
try:
|
101 |
+
create_repo(
|
102 |
+
ci_space_id,
|
103 |
+
repo_type="space",
|
104 |
+
space_sdk="docker",
|
105 |
+
private=private,
|
106 |
+
token=HF_TOKEN,
|
107 |
+
)
|
108 |
is_new = True
|
109 |
except HTTPError as err:
|
110 |
if err.response.status_code == 409: # already exists
|