Docfile commited on
Commit
89d9734
·
verified ·
1 Parent(s): 0a98f37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,13 +55,13 @@ def recognize_faces(img):
55
  cv2.putText(image, name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
56
 
57
  print(name)
58
- return image
59
 
60
  # Create Gradio interface
61
  iface = gr.Interface(
62
  fn=recognize_faces,
63
  inputs="image",
64
- outputs="image",
65
  live=True,
66
  title="Face Recognition App",
67
  description="This app recognizes faces in an image and updates attendance."
 
55
  cv2.putText(image, name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
56
 
57
  print(name)
58
+ return name
59
 
60
  # Create Gradio interface
61
  iface = gr.Interface(
62
  fn=recognize_faces,
63
  inputs="image",
64
+ outputs="text",
65
  live=True,
66
  title="Face Recognition App",
67
  description="This app recognizes faces in an image and updates attendance."