Zhu-FaceOnLive commited on
Commit
44e9e8c
Β·
verified Β·
1 Parent(s): 47fb55a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def process_response(response, soc_res, url, token):
105
  return []
106
 
107
  try:
108
- res = response.json().get('img_array', []) if status_code == 202 else []
109
  if soc_res:
110
  res = soc_res[0] + res + soc_res[1]
111
 
 
105
  return []
106
 
107
  try:
108
+ res = response.json().get('img_array', []) if status_code in [201, 202] else []
109
  if soc_res:
110
  res = soc_res[0] + res + soc_res[1]
111