Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|
| 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):
|