chansung commited on
Commit
4b9dacd
·
1 Parent(s): e481158

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -230,8 +230,10 @@ def submit(
230
  return "Invalid token"
231
  elif response.status_code == 409:
232
  return f"Endpoint {endpoint_name_input} already exists"
233
- else:
234
  return f"Endpoint {endpoint_name_input} created successfully on {provider_selector.lower()} using {repository_selector.lower()}@{head_sha}"
 
 
235
 
236
  with gr.Blocks() as demo2:
237
  gr.Markdown(
 
230
  return "Invalid token"
231
  elif response.status_code == 409:
232
  return f"Endpoint {endpoint_name_input} already exists"
233
+ else respose.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 "something went wrong"
237
 
238
  with gr.Blocks() as demo2:
239
  gr.Markdown(