Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def resize(value,img):
|
|
17 |
|
18 |
def infer(source_img, prompt, negative_prompt, guide, steps, seed):
|
19 |
generator = torch.Generator(device).manual_seed(seed)
|
20 |
-
imageio.imwrite("data.png", source_img
|
21 |
src = resize(768, 'data.png')
|
22 |
image = pipe(prompt, negative_prompt=negative_prompt, image=src, strength=1, guidance_scale=guide, num_inference_steps=steps).images[0]
|
23 |
return image
|
|
|
17 |
|
18 |
def infer(source_img, prompt, negative_prompt, guide, steps, seed):
|
19 |
generator = torch.Generator(device).manual_seed(seed)
|
20 |
+
imageio.imwrite("data.png", source_img)
|
21 |
src = resize(768, 'data.png')
|
22 |
image = pipe(prompt, negative_prompt=negative_prompt, image=src, strength=1, guidance_scale=guide, num_inference_steps=steps).images[0]
|
23 |
return image
|