gradio_opencv / app.py
arminak6's picture
Update app.py
3fb0f9e verified
raw
history blame
467 Bytes
import gradio
import cv2
def inference(img):
blur = cv2.blur(img,(50,50))
return blur
# For information on Interfaces, head to https://gradio.app/docs/
# For user guides, head to https://gradio.app/guides/
# For Spaces usage, head to https://huggingface.co/docs/hub/spaces
iface = gradio.Interface(
fn=inference,
inputs='image',
outputs='image',
title='Hello World',
description='The simplest interface!',
examples=["llama.jpg"])
iface.launch()