chansung commited on
Commit
5039577
·
1 Parent(s): 3e98c98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 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(
 
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(