n0no123 commited on
Commit
7cada4f
1 Parent(s): 08dc636

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +1 -4
  2. 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 flipped_image
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