HelloFastAI / app.py
QingJoy's picture
Create app.py
f8c5126
raw
history blame contribute delete
215 Bytes
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()