Spaces:
Runtime error
Runtime error
File size: 647 Bytes
c1ae314 6e08aa6 c1ae314 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import gradio as gr
from Blur import background_motion_blur
def blur(img, distance_blur, amount_blur):
return background_motion_blur(img, distance_blur, amount_blur)
iface = gr.Interface(fn=blur,
title="Background Motion Blur",
examples=[["input.jpg", 200, 1]],
inputs=[gr.Image(type='pil', label='Image'),
gr.Slider(label='Blur Distance', minimum=0, maximum=500, value=200),
gr.Slider(label='Blur Amount', minimum=0.0, maximum=1.0, value=1)],
outputs=gr.Image(label='Output'))
iface.launch()
|