Spaces:
Runtime error
Runtime error
File size: 320 Bytes
6bc1dcc ae77e95 6bc1dcc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
import cv2
def process_image(input_image):
# Convert the image to grayscale
gray_image = cv2.cvtColor(input_image, cv2.COLOR_BGR2GRAY)
return gray_image
iface = gr.Interface(fn=process_image, inputs="image", outputs="image",
examples=['img.jpg'])
iface.launch()
|