Ashoka74 commited on
Commit
39b54e9
1 Parent(s): 21dbed4

Update app_merged.py

Browse files
Files changed (1) hide show
  1. app_merged.py +1 -1
app_merged.py CHANGED
@@ -380,7 +380,7 @@ def inpaint(image, width, height, overlap_percentage, num_inference_steps, resiz
380
  result = result.convert("RGBA")
381
  cnet_image.paste(result, (0, 0), mask)
382
 
383
- return cnet_image, background
384
 
385
  def preview_image_and_mask(image, width, height, overlap_percentage, resize_option, custom_resize_percentage, alignment, overlap_left, overlap_right, overlap_top, overlap_bottom):
386
  background, mask = prepare_image_and_mask(image, width, height, overlap_percentage, resize_option, custom_resize_percentage, alignment, overlap_left, overlap_right, overlap_top, overlap_bottom)
 
380
  result = result.convert("RGBA")
381
  cnet_image.paste(result, (0, 0), mask)
382
 
383
+ return cnet_image #, background
384
 
385
  def preview_image_and_mask(image, width, height, overlap_percentage, resize_option, custom_resize_percentage, alignment, overlap_left, overlap_right, overlap_top, overlap_bottom):
386
  background, mask = prepare_image_and_mask(image, width, height, overlap_percentage, resize_option, custom_resize_percentage, alignment, overlap_left, overlap_right, overlap_top, overlap_bottom)