amildravid4292 commited on
Commit
60e1405
·
verified ·
1 Parent(s): 815beac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -291,7 +291,7 @@ def edit_inference(net, prompt, negative_prompt, guidance_scale, ddim_steps, see
291
  image = image.detach().cpu().float().permute(0, 2, 3, 1).numpy()[0]
292
  image = Image.fromarray((image * 255).round().astype("uint8"))
293
 
294
- return net, (image, input_image["background"])
295
 
296
 
297
  class CustomImageDataset(Dataset):
 
291
  image = image.detach().cpu().float().permute(0, 2, 3, 1).numpy()[0]
292
  image = Image.fromarray((image * 255).round().astype("uint8"))
293
 
294
+ return net, image
295
 
296
 
297
  class CustomImageDataset(Dataset):