Thedatababbler
ss
adde5a6
raw
history blame
269 Bytes
import gradio as gr
import cv2
def to_black(image, text):
output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
outputs = [output, text]
return output
interface = gr.Interface(fn=to_black, inputs=["image", "text"], outputs=["image", "text"])
interface.launch()