David-Chew-HL commited on
Commit
9e86d00
1 Parent(s): 39fcd90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,12 +19,12 @@ def blur_img(img, blur):
19
  #interface
20
  inputs = [
21
  gr.Image(type="pil", label="Input Image"),
22
- gr.Slider(minimum=5, maximum=200, label="Blur Amount", step=1)
23
  ]
24
 
25
  output = gr.Image(type="pil", label="Blurred Image")
26
 
27
  app= gr.Interface(fn=blur_img, inputs=inputs, outputs=output, title="Depth Anything model based Image Blurring",
28
- description="Upload an image and adjust the blur amount using the slider. \nThis project takes in an image, obtains a depth mask using the Depth Anything model by https://huggingface.co/LiheYoung/depth-anything-base-hf, and blurs image using the mask.")
29
 
30
  app.launch(share=True)
 
19
  #interface
20
  inputs = [
21
  gr.Image(type="pil", label="Input Image"),
22
+ gr.Slider(minimum=1, maximum=10, label="Blur Amount", step=1)
23
  ]
24
 
25
  output = gr.Image(type="pil", label="Blurred Image")
26
 
27
  app= gr.Interface(fn=blur_img, inputs=inputs, outputs=output, title="Depth Anything model based Image Blurring",
28
+ description="Upload an image and adjust the blur amount using the slider. \nThis project takes in an image, obtains a depth mask using the Depth Anything model by https://huggingface.co/LiheYoung/depth-anything-base-hf, and blurs image based on the depth mask.")
29
 
30
  app.launch(share=True)