Update app.py
Browse files
app.py
CHANGED
|
@@ -19,8 +19,6 @@ pipe.to(device)
|
|
| 19 |
|
| 20 |
def infer(prompt, init_image):
|
| 21 |
|
| 22 |
-
init_image = init_image.resize((512, 512))
|
| 23 |
-
init_image = preprocess(init_image)
|
| 24 |
image = pipe(prompt, init_image=init_image)["sample"][0]
|
| 25 |
|
| 26 |
return image
|
|
|
|
| 19 |
|
| 20 |
def infer(prompt, init_image):
|
| 21 |
|
|
|
|
|
|
|
| 22 |
image = pipe(prompt, init_image=init_image)["sample"][0]
|
| 23 |
|
| 24 |
return image
|