File size: 303 Bytes
634e040
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import numpy as np
import gradio as gr

def blur_image(input_img):
    # Apply a Gaussian blur to the image
    blurred_img = cv2.GaussianBlur(input_img, (15, 15), 0)
    return blurred_img

demo = gr.Interface(blur_image, gr.Image(), "image")
if __name__ == "__main__":
    demo.launch(show_error=True)