Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -84,8 +84,8 @@ def recog(image):
|
|
84 |
#faces = face_cascade.detectMultiScale(image, scaleFactor=1.3, minNeighbors=5)
|
85 |
#for x,y,w,h in faces:
|
86 |
#img = image[y:y+h, x:x+w]
|
87 |
-
if
|
88 |
-
identity=who_is_it(
|
89 |
return identity
|
90 |
intf = gr.Interface(fn=who_is_it, inputs=gr.Image(type="pil"), outputs=label)
|
91 |
intf.launch(inline=False)
|
|
|
84 |
#faces = face_cascade.detectMultiScale(image, scaleFactor=1.3, minNeighbors=5)
|
85 |
#for x,y,w,h in faces:
|
86 |
#img = image[y:y+h, x:x+w]
|
87 |
+
if image_prep is not None:
|
88 |
+
identity=who_is_it(image_prep)
|
89 |
return identity
|
90 |
intf = gr.Interface(fn=who_is_it, inputs=gr.Image(type="pil"), outputs=label)
|
91 |
intf.launch(inline=False)
|