Spaces:
Runtime error
Runtime error
Thedatababbler
commited on
Commit
·
7fc5847
1
Parent(s):
8d5dea4
- app.py +2 -2
- requirements.txt +3 -1
app.py
CHANGED
|
@@ -4,6 +4,6 @@ import cv2
|
|
| 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()
|
|
|
|
| 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", "text"], outputs=["image", "text"])
|
| 9 |
interface.launch()
|
requirements.txt
CHANGED
|
@@ -1 +1,3 @@
|
|
| 1 |
-
opencv-python>=4.5.3.56s
|
|
|
|
|
|
|
|
|
| 1 |
+
opencv-python>=4.5.3.56s
|
| 2 |
+
# transformers
|
| 3 |
+
# torch
|