WeShop commited on
Commit
d27de3c
·
1 Parent(s): fa8c0bd

WeShop optimization

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