Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
jason4000
/
rgb2gray
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
rgb2gray
/
app.py
Jason Lee
fads
0d89e2c
about 2 years ago
raw
Copy download link
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()