blurrying / app.py
clem's picture
clem HF staff
initial commit
634e040 verified
raw
history blame contribute delete
303 Bytes
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)