Spaces:
Build error
Build error
Commit
•
67075bc
1
Parent(s):
b7b387b
refactor messages
Browse files
app.py
CHANGED
@@ -99,10 +99,10 @@ def space_builder(spaces: str, hf_token: str, username: str, space_name: str, sp
|
|
99 |
if spaces == "" or hf_token == "" or username == "" or space_name == "" or space_description == "":
|
100 |
return "Please fill all the inputs"
|
101 |
if check_space_name_availability(hf_token, space_name):
|
102 |
-
return "The
|
103 |
else:
|
104 |
return (
|
105 |
-
f"The
|
106 |
"\n-The the username/space_name is already used for the given token's user"
|
107 |
"\n-Or the given token is false, please check!"
|
108 |
)
|
|
|
99 |
if spaces == "" or hf_token == "" or username == "" or space_name == "" or space_description == "":
|
100 |
return "Please fill all the inputs"
|
101 |
if check_space_name_availability(hf_token, space_name):
|
102 |
+
return "The space name is available"
|
103 |
else:
|
104 |
return (
|
105 |
+
f"The space name is not available, either"
|
106 |
"\n-The the username/space_name is already used for the given token's user"
|
107 |
"\n-Or the given token is false, please check!"
|
108 |
)
|