n0no123 commited on
Commit
67b2632
·
1 Parent(s): dac4c3a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,9 +10,10 @@ def my_app(img):
10
  analysedData = classifier.detectMultiScale(flipped_image,
11
  minSize=(20, 20))
12
  if len(analysedData) != 0:
 
13
  return ("S T O P !")
14
  else:
15
- return ("You're good to go :)")
16
 
17
 
18
  gr.interface.Interface(fn=my_app, live=True, inputs=gr.Image(
 
10
  analysedData = classifier.detectMultiScale(flipped_image,
11
  minSize=(20, 20))
12
  if len(analysedData) != 0:
13
+ return analysedData[0].x
14
  return ("S T O P !")
15
  else:
16
+ return analysedData[0][1]
17
 
18
 
19
  gr.interface.Interface(fn=my_app, live=True, inputs=gr.Image(