WeShop optimization
Browse files
app.py
CHANGED
@@ -298,6 +298,7 @@ def generate_image(main_image, background_image, did, request: gr.Request):
|
|
298 |
return gr.Warning(m), did
|
299 |
status = results[0].get("status")
|
300 |
if status == "Failed":
|
|
|
301 |
return gr.Warning(m), did
|
302 |
elif status == "Success" or status == "Blocked":
|
303 |
img = results[0].get("image")
|
|
|
298 |
return gr.Warning(m), did
|
299 |
status = results[0].get("status")
|
300 |
if status == "Failed":
|
301 |
+
m = "The person image does not match your garment. It is recommended to change to a different one."
|
302 |
return gr.Warning(m), did
|
303 |
elif status == "Success" or status == "Blocked":
|
304 |
img = results[0].get("image")
|