Spaces:
Build error
Build error
Commit
·
61d80f2
1
Parent(s):
c500ff5
Refactoring
Browse files
app.py
CHANGED
@@ -165,6 +165,7 @@ class SpaceBuilder:
|
|
165 |
cls.error_message = "The the username/space_name is already used for the given token's user"
|
166 |
return False
|
167 |
else:
|
|
|
168 |
return True
|
169 |
except Exception as ex:
|
170 |
cls.error_message = "Can not send a request to https://huggingface.co"
|
@@ -192,7 +193,6 @@ class SpaceBuilder:
|
|
192 |
if SpaceBuilder.check_space_name_availability(
|
193 |
hf_token=hf_token, space_name=target_space_name
|
194 |
):
|
195 |
-
print("The space name is available")
|
196 |
if SpaceBuilder.load_and_check_spaces(names=space_names):
|
197 |
print("Loaded and checked input spaces")
|
198 |
if SpaceBuilder.create_space(
|
|
|
165 |
cls.error_message = "The the username/space_name is already used for the given token's user"
|
166 |
return False
|
167 |
else:
|
168 |
+
print("The space name is available")
|
169 |
return True
|
170 |
except Exception as ex:
|
171 |
cls.error_message = "Can not send a request to https://huggingface.co"
|
|
|
193 |
if SpaceBuilder.check_space_name_availability(
|
194 |
hf_token=hf_token, space_name=target_space_name
|
195 |
):
|
|
|
196 |
if SpaceBuilder.load_and_check_spaces(names=space_names):
|
197 |
print("Loaded and checked input spaces")
|
198 |
if SpaceBuilder.create_space(
|