gchallar commited on
Commit
a2d6b95
·
verified ·
1 Parent(s): 949b21d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -100,7 +100,7 @@ interface = gr.Interface(
100
  fn=process_image,
101
  inputs=[
102
  gr.Image(type="pil", label="Upload an Image"),
103
- gr.Sketchpad(shape=(256, 256), label="Draw Mask (Only for Gaussian Blur)"),
104
  gr.Radio(["Gaussian Blur", "Lens Blur"], label="Choose Blur Effect")
105
  ],
106
  outputs=gr.Image(type="pil"),
@@ -108,5 +108,6 @@ interface = gr.Interface(
108
  description="Upload an image and select either Gaussian blur (with mask) or depth-based lens blur."
109
  )
110
 
 
111
  if __name__ == "__main__":
112
  interface.launch()
 
100
  fn=process_image,
101
  inputs=[
102
  gr.Image(type="pil", label="Upload an Image"),
103
+ gr.Sketchpad(tool="brush", height=256, width=256, label="Draw Mask (Only for Gaussian Blur)"),
104
  gr.Radio(["Gaussian Blur", "Lens Blur"], label="Choose Blur Effect")
105
  ],
106
  outputs=gr.Image(type="pil"),
 
108
  description="Upload an image and select either Gaussian blur (with mask) or depth-based lens blur."
109
  )
110
 
111
+
112
  if __name__ == "__main__":
113
  interface.launch()