wasay commited on
Commit
5d78c42
1 Parent(s): 5eca700

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 img is not None:
88
- identity=who_is_it(img)
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)