tonyassi commited on
Commit
0533194
β€’
1 Parent(s): f9db485

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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, inputs=gr.Image(type='pil'), outputs="text")
 
 
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()