Spaces:
Runtime error
Runtime error
David-Chew-HL
commited on
Commit
•
9e86d00
1
Parent(s):
39fcd90
Update app.py
Browse files
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=
|
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
|
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)
|