hasnanmr commited on
Commit
d490f3d
1 Parent(s): afde1a4

fixing gradio app

Browse files
Files changed (4) hide show
  1. app.py +2 -2
  2. faceViT6.pth +3 -0
  3. face_database_ViT6.pkl +3 -0
  4. requirements.txt +1 -1
app.py CHANGED
@@ -75,8 +75,8 @@ def process_image(image):
75
  # Create the Gradio interface
76
  iface = gr.Interface(
77
  fn=process_image,
78
- inputs=gr.inputs.Image(type="pil"),
79
- outputs="image",
80
  title="Face Detection with MTCNN",
81
  description="Upload an image and the model will detect and align faces in it."
82
  )
 
75
  # Create the Gradio interface
76
  iface = gr.Interface(
77
  fn=process_image,
78
+ inputs=gr.Image(type="pil"),
79
+ outputs=gr.Image(type="numpy"),
80
  title="Face Detection with MTCNN",
81
  description="Upload an image and the model will detect and align faces in it."
82
  )
faceViT6.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:808d595f67b4e57ff1b28071d75cf913478fdaa5b7794ccc29001ebaa1705fdb
3
+ size 87338222
face_database_ViT6.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3378eb264ebc10d3d4556d820e06471451f57395412bdd74002b1c08003434e4
3
+ size 17536
requirements.txt CHANGED
@@ -14,4 +14,4 @@ opencv-contrib-python==4.9.0.80
14
  opencv-python==4.9.0.80
15
  facenet-pytorch==2.5.3
16
  transformers==4.41.2
17
- gradio==4.37.2
 
14
  opencv-python==4.9.0.80
15
  facenet-pytorch==2.5.3
16
  transformers==4.41.2
17
+ gradio==3.50.2