Spaces:
Runtime error
Runtime error
Thedatababbler
commited on
Commit
·
b1af7d4
1
Parent(s):
9a78b42
test
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import cv2
|
3 |
-
|
4 |
def to_black(image):
|
5 |
output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
6 |
return output
|
7 |
-
|
8 |
interface = gr.Interface(fn=to_black, inputs="image", outputs="image")
|
9 |
interface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
import cv2
|
3 |
+
|
4 |
def to_black(image):
|
5 |
output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
6 |
return output
|
7 |
+
|
8 |
interface = gr.Interface(fn=to_black, inputs="image", outputs="image")
|
9 |
interface.launch()
|