Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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
|
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(
|