Zhu-FaceOnLive
commited on
Update app.py
Browse files
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
|
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 |
|