lampongyuen's picture
Upload 4 files
15364a8
raw
history blame
511 Bytes
import gradio
import cv2
def inference(img):
new_img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
return new_img
# blur = cv2.blur(img,(5,5))
# 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='Change Image',
description='Interface!',
examples=["llama.jpg"])
iface.launch()