Spaces:
Runtime error
Runtime error
Thedatababbler commited on
Commit ·
bc22792
1
Parent(s): adde5a6
tt
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import cv2
|
|
| 4 |
def to_black(image, text):
|
| 5 |
output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
| 6 |
outputs = [output, text]
|
| 7 |
-
return
|
| 8 |
|
| 9 |
interface = gr.Interface(fn=to_black, inputs=["image", "text"], outputs=["image", "text"])
|
| 10 |
interface.launch()
|
|
|
|
| 4 |
def to_black(image, text):
|
| 5 |
output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
| 6 |
outputs = [output, text]
|
| 7 |
+
return outputs
|
| 8 |
|
| 9 |
interface = gr.Interface(fn=to_black, inputs=["image", "text"], outputs=["image", "text"])
|
| 10 |
interface.launch()
|