John1986 commited on
Commit
af88d75
1 Parent(s): c9857da

Upload app.py

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