monomagic / app.py
tapas0A's picture
Upload with huggingface_hub
051ea30
raw
history blame contribute delete
229 Bytes
import gradio as gr
import cv2
def black_and_white(image):
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
return gray_image
iface = gr.Interface(fn=black_and_white, inputs="image", outputs="image")
iface.launch()