Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,10 @@ def my_app(img):
|
|
10 |
analysedData = classifier.detectMultiScale(flipped_image,
|
11 |
minSize=(20, 20))
|
12 |
if len(analysedData) != 0:
|
13 |
-
return
|
14 |
else:
|
15 |
-
return
|
16 |
|
17 |
|
18 |
gr.interface.Interface(fn=my_app, live=True, inputs=gr.Image(
|
19 |
-
source='webcam', streaming=True), outputs="
|
|
|
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(
|
19 |
+
source='webcam', streaming=True), outputs="text").launch()
|