MaxMilan1 commited on
Commit
3094469
1 Parent(s): a32dff0
Files changed (2) hide show
  1. app.py +1 -1
  2. util/text_img.py +0 -1
app.py CHANGED
@@ -41,7 +41,7 @@ with gr.Blocks(theme=theme) as GenDemo:
41
  )
42
  with gr.Column():
43
  button_gen = gr.Button("Generate Image", elem_id="generateIm", variant="primary")
44
- gen_image = gr.Image(label="Generated Image", show_download_button=True, show_label=False)
45
 
46
  button_gen.click(check_prompt, inputs=[prompt]).success(generate_image, inputs=[prompt, negative_prompt, control_image, scale], outputs=[gen_image])
47
 
 
41
  )
42
  with gr.Column():
43
  button_gen = gr.Button("Generate Image", elem_id="generateIm", variant="primary")
44
+ gen_image = gr.Image(label="Generated Image", image_mode="RGBA", type='pil', show_download_button=True, show_label=False)
45
 
46
  button_gen.click(check_prompt, inputs=[prompt]).success(generate_image, inputs=[prompt, negative_prompt, control_image, scale], outputs=[gen_image])
47
 
util/text_img.py CHANGED
@@ -44,7 +44,6 @@ def generate_image(prompt, negative_prompt, control_image, scale=0.5):
44
  controlnet_conditioning_scale=scale,
45
  ).images[0]
46
  image2 = rembg.remove(image)
47
- print(image2)
48
 
49
  return image2
50
 
 
44
  controlnet_conditioning_scale=scale,
45
  ).images[0]
46
  image2 = rembg.remove(image)
 
47
 
48
  return image2
49