Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from Blur import motion_blur, background_motion_blur
|
3 |
|
4 |
-
def blur(img):
|
5 |
return img
|
6 |
|
7 |
-
iface = gr.Interface(fn=blur,
|
|
|
|
|
8 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
from Blur import motion_blur, background_motion_blur
|
3 |
|
4 |
+
def blur(img, distance_blur, amount_blur, amount_subject):
|
5 |
return img
|
6 |
|
7 |
+
iface = gr.Interface(fn=blur,
|
8 |
+
inputs=[gr.Image(type='pil'), gradio.Slider(label='Blur Distance'), gradio.Slider(label='Blur Amount'), gradio.Slider(label='Subject Amount')],
|
9 |
+
outputs="text")
|
10 |
iface.launch()
|