Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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)
|