Spaces:
Saad0KH
/
Running on Zero

Saad0KH commited on
Commit
8b0546d
ยท
verified ยท
1 Parent(s): 6032c87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -223,9 +223,8 @@ def combine_images_with_masks(img_top, img_bottom, mask_top, mask_bottom):
223
  def tryon():
224
  try:
225
  data = request.json
226
- image_base64 = data.get('image')
227
- garm_img_base64 = data.get('garm_img')
228
- mask_base64 = data.get('mask')
229
  is_checked = data.get('is_checked', False)
230
  is_checked_crop = data.get('is_checked_crop', False)
231
  denoise_steps = data.get('denoise_steps', 20)
@@ -234,7 +233,6 @@ def tryon():
234
 
235
  human_img = decode_image_from_base64(image_base64)
236
  garm_img = decode_image_from_base64(garm_img_base64)
237
- mask = decode_image_from_base64(mask_base64)
238
 
239
  combined_image = start_tryon(
240
  dict={"background": human_img},
 
223
  def tryon():
224
  try:
225
  data = request.json
226
+ image_base64 = data.get('human_image')
227
+ garm_img_base64 = data.get('garment_image')
 
228
  is_checked = data.get('is_checked', False)
229
  is_checked_crop = data.get('is_checked_crop', False)
230
  denoise_steps = data.get('denoise_steps', 20)
 
233
 
234
  human_img = decode_image_from_base64(image_base64)
235
  garm_img = decode_image_from_base64(garm_img_base64)
 
236
 
237
  combined_image = start_tryon(
238
  dict={"background": human_img},