Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| import cv2 | |
| def color_to_bw(image): | |
| gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
| return gray | |
| iface = gr.Interface(fn=color_to_bw, inputs="image", outputs="image") | |
| iface.launch() | |