rootglitch commited on
Commit
b66ab63
·
1 Parent(s): 3a03cc2

Debug masked image

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -519,7 +519,7 @@ def generate_image(input_img, ai_gen_image, prompt):
519
 
520
  final_image = blend_details(input_img, ai_gen_image, mask_input_image)
521
 
522
- return final_image
523
 
524
  def create_ui():
525
  """Create Gradio UI for CarViz demo"""
@@ -539,6 +539,7 @@ def create_ui():
539
  # gallery = gr.Gallery(
540
  # label="Generated images", show_label=False, elem_id="gallery"
541
  # )
 
542
  output_image = gr.Image(label="Generated Image")
543
 
544
  # Run button
@@ -549,7 +550,7 @@ def create_ui():
549
  ai_image,
550
  prompt
551
  ],
552
- outputs=output_image
553
  )
554
 
555
  return block
 
519
 
520
  final_image = blend_details(input_img, ai_gen_image, mask_input_image)
521
 
522
+ return mask_input_image, final_image
523
 
524
  def create_ui():
525
  """Create Gradio UI for CarViz demo"""
 
539
  # gallery = gr.Gallery(
540
  # label="Generated images", show_label=False, elem_id="gallery"
541
  # )
542
+ masked_image = gr.Image(label="Generated Image")
543
  output_image = gr.Image(label="Generated Image")
544
 
545
  # Run button
 
550
  ai_image,
551
  prompt
552
  ],
553
+ outputs=[masked_image, output_image]
554
  )
555
 
556
  return block