test / app.py
John1986's picture
Upload app.py (#1)
8ab1249
raw
history blame
259 Bytes
import gradio as gr
import cv2
def to_black(image):
output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
print('===========================')
return output
interface = gr.Interface(fn=to_black, inputs="image", outputs="image")
interface.launch(share=True)