Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
QingJoy
/
HelloFastAI
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
bc60ec5
HelloFastAI
/
app.py
QingJoy
Create app.py
f8c5126
over 2 years ago
raw
Copy download link
history
blame
Safe
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()