Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -230,10 +230,10 @@ def submit(
|
|
230 |
return "Invalid token"
|
231 |
elif response.status_code == 409:
|
232 |
return f"Endpoint {endpoint_name_input} already exists"
|
233 |
-
elif
|
234 |
return f"Endpoint {endpoint_name_input} created successfully on {provider_selector.lower()} using {repository_selector.lower()}@{head_sha}"
|
235 |
else:
|
236 |
-
return "something went wrong"
|
237 |
|
238 |
with gr.Blocks() as demo2:
|
239 |
gr.Markdown(
|
|
|
230 |
return "Invalid token"
|
231 |
elif response.status_code == 409:
|
232 |
return f"Endpoint {endpoint_name_input} already exists"
|
233 |
+
elif response.status_code == 200:
|
234 |
return f"Endpoint {endpoint_name_input} created successfully on {provider_selector.lower()} using {repository_selector.lower()}@{head_sha}"
|
235 |
else:
|
236 |
+
return f"something went wrong {response.status_code} = {response.text}"
|
237 |
|
238 |
with gr.Blocks() as demo2:
|
239 |
gr.Markdown(
|