radames commited on
Commit
f4883aa
1 Parent(s): ea8cb06
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -70,8 +70,7 @@ def predict(
70
  ):
71
  if input_image is None:
72
  raise gr.Error("Please upload an image.")
73
- padded_image = pad_image(input_image).resize((1024, 1024))
74
- padded_image.save(f"padded_image+{seed}.jpg")
75
  image_lr = load_and_process_image(padded_image).to(device)
76
  generator = torch.manual_seed(seed)
77
  images = pipe(
 
70
  ):
71
  if input_image is None:
72
  raise gr.Error("Please upload an image.")
73
+ padded_image = pad_image(input_image).resize((1024, 1024)).convert("RGB")
 
74
  image_lr = load_and_process_image(padded_image).to(device)
75
  generator = torch.manual_seed(seed)
76
  images = pipe(