QingJoy commited on
Commit
f8c5126
·
1 Parent(s): c6817d7

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import gradio as gr
3
+ import cv2
4
+
5
+ def to_black(image):
6
+ output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
7
+ return output
8
+
9
+ interface = gr.Interface(fn=to_black, inputs="image", outputs="image")
10
+ interface.launch()