chansung commited on
Commit
bcda1ab
·
1 Parent(s): 99c8ad0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -225,7 +225,7 @@ def submit(
225
  response = requests.post(endpoint_url, headers=headers, json=payload)
226
 
227
  if response.status_code == 400:
228
- return f"Malformed data in {payload}"
229
  elif response.status_code == 401:
230
  return "Invalid token"
231
  elif response.status_code == 409:
 
225
  response = requests.post(endpoint_url, headers=headers, json=payload)
226
 
227
  if response.status_code == 400:
228
+ return f"{response.text}. Malformed data in {payload}"
229
  elif response.status_code == 401:
230
  return "Invalid token"
231
  elif response.status_code == 409: