Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="galler
|
|
26 |
def infer(prompt, init_image):
|
27 |
print(init_image)
|
28 |
init_image = Image.open(init_image)
|
29 |
-
init_image
|
30 |
#image = pipe(prompt, init_image=init_image)["sample"][0]
|
31 |
images_list = pipe([prompt] * 2, init_image=init_image, strength=0.75)
|
32 |
images = []
|
|
|
26 |
def infer(prompt, init_image):
|
27 |
print(init_image)
|
28 |
init_image = Image.open(init_image)
|
29 |
+
init_image.resize((768, 512))
|
30 |
#image = pipe(prompt, init_image=init_image)["sample"][0]
|
31 |
images_list = pipe([prompt] * 2, init_image=init_image, strength=0.75)
|
32 |
images = []
|