Spaces:
Runtime error
Runtime error
File size: 269 Bytes
9a78b42 b1af7d4 adde5a6 9a78b42 adde5a6 9a78b42 7fc5847 9a78b42 |
1 2 3 4 5 6 7 8 9 10 |
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() |