Spaces:
Runtime error
Runtime error
File size: 220 Bytes
9a78b42 |
1 2 3 4 5 6 7 8 9 |
import gradio as gr
import cv2
β
def to_black(image):
output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
return output
β
interface = gr.Interface(fn=to_black, inputs="image", outputs="image")
interface.launch() |