tonyassi commited on
Commit
0fd4beb
1 Parent(s): d16752a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -34,12 +34,12 @@ def generate(image_editor, prompt, neg_prompt, strength, guidance):
34
 
35
  final_image = pipeline(prompt=prompt,
36
  image=image,
37
- mask_image=mask,
38
- width=image.width,
39
- height=image.height,
40
- num_inference_steps=50,
41
- strength=strength,
42
- guidance_scale=guidance).images[0]
43
 
44
  return image_editor, image, mask, final_image
45
 
@@ -64,9 +64,9 @@ with gr.Blocks() as demo:
64
  guidance_slider = gr.Slider(1.0, 15.0, value=7.5, label="Guidance")
65
 
66
  with gr.Row():
67
- out1 = gr.Image()
68
- out2 = gr.Image()
69
- out3 = gr.Image()
70
 
71
  generate_button.click(fn=generate, inputs=[sketch_pad,prompt, neg_prompt, strength_slider, guidance_slider], outputs=[sketch_pad, out1, out2, out3])
72
 
 
34
 
35
  final_image = pipeline(prompt=prompt,
36
  image=image,
37
+ mask_image=mask,).images[0]
38
+ #width=image.width,
39
+ #height=image.height,
40
+ #num_inference_steps=50,
41
+ #strength=strength,
42
+ #guidance_scale=guidance).images[0]
43
 
44
  return image_editor, image, mask, final_image
45
 
 
64
  guidance_slider = gr.Slider(1.0, 15.0, value=7.5, label="Guidance")
65
 
66
  with gr.Row():
67
+ out1 = gr.Image(format='png')
68
+ out2 = gr.Image(format='png')
69
+ out3 = gr.Image(format='png')
70
 
71
  generate_button.click(fn=generate, inputs=[sketch_pad,prompt, neg_prompt, strength_slider, guidance_slider], outputs=[sketch_pad, out1, out2, out3])
72