Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- app.py +1 -4
- thumbs_up.jpg +0 -0
app.py
CHANGED
|
@@ -13,11 +13,8 @@ def my_app(img):
|
|
| 13 |
return cv2.rectangle(flipped_image, (x, y),
|
| 14 |
(x + height, y + width),
|
| 15 |
(0, 255, 0), 5)
|
| 16 |
-
return flipped_image
|
| 17 |
-
return ("S T O P !")
|
| 18 |
else:
|
| 19 |
-
return
|
| 20 |
-
return ("You're good to go :)")
|
| 21 |
|
| 22 |
|
| 23 |
gr.interface.Interface(fn=my_app, live=True, inputs="image", outputs="image").launch()
|
|
|
|
| 13 |
return cv2.rectangle(flipped_image, (x, y),
|
| 14 |
(x + height, y + width),
|
| 15 |
(0, 255, 0), 5)
|
|
|
|
|
|
|
| 16 |
else:
|
| 17 |
+
return cv2.imread("thumbs_up.jpg")
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
gr.interface.Interface(fn=my_app, live=True, inputs="image", outputs="image").launch()
|
thumbs_up.jpg
ADDED
|
|