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) |