Manjushri commited on
Commit
ad7801d
·
1 Parent(s): 915cab0

Update app.py

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