snicolau commited on
Commit
5a38b1d
Β·
verified Β·
1 Parent(s): 51a2f5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -139,14 +139,14 @@ with gr.Blocks() as demo:
139
  lama = gr.Button(value="Remove people", variant="primary", size="sm")#.style(full_width=True, size="sm")
140
  clear_button_image = gr.Button(value="Reset", variant="secondary", size="sm")#.style(full_width=True, size="sm")
141
 
142
- img = gr.Image(value="Input Image")#.style(height="200px")
143
 
144
  #mask = gr.outputs.Image(type="numpy", label="Segmentation Mask")#.style(height="200px")
145
 
146
- img_out = gr.outputs.Image(value="Image with People Removed")# type="numpy", .style(height="200px")
147
 
148
  lama.click(
149
- get_inpainted_img,
150
  [img, num_people_keep, dilate_kernel_size],
151
  [img_out]
152
  )
 
139
  lama = gr.Button(value="Remove people", variant="primary", size="sm")#.style(full_width=True, size="sm")
140
  clear_button_image = gr.Button(value="Reset", variant="secondary", size="sm")#.style(full_width=True, size="sm")
141
 
142
+ img = gr.Image()# value="Input Image" .style(height="200px")
143
 
144
  #mask = gr.outputs.Image(type="numpy", label="Segmentation Mask")#.style(height="200px")
145
 
146
+ img_out = gr.outputs.Image()# value="Image with People Removed", type="numpy", .style(height="200px")
147
 
148
  lama.click(
149
+ remove_people,
150
  [img, num_people_keep, dilate_kernel_size],
151
  [img_out]
152
  )