File size: 234 Bytes
9a78b42
 
b1af7d4
9a78b42
 
 
7fc5847
 
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", "text"], outputs=["image", "text"])
interface.launch()