tomas-gajarsky commited on
Commit
3c886fa
1 Parent(s): 91d30ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -61,18 +61,18 @@ def inference(path_image: str) -> Tuple:
61
 
62
 
63
  title = "facetorch-app"
64
- description = "Demo of facetorch, a Python library that uses pre-trained deep neural networks for face detection, representation learning, verification, expression recognition, deepfake detection, and 3D alignment. Try selecting one of the example images or upload your own. This work would not be possible without the original work of the researchers and engineers who trained the models (sources and credits can be found in the facetorch repository). Use responsibly."
65
  article = "<p style='text-align: center'><a href='https://github.com/tomas-gajarsky/facetorch' style='text-align:center' target='_blank'>facetorch GitHub repository</a></p>"
66
 
67
  demo=gr.Interface(
68
  inference,
69
- [gr.inputs.Image(label="Input", type="filepath")],
70
- [gr.outputs.Image(type="pil", label="Face Detection and 3D Landmarks"),
71
- gr.outputs.Textbox(label="Facial Expression Recognition"),
72
- gr.outputs.Textbox(label="DeepFake Detection"),
73
- gr.outputs.Textbox(label="Cosine similarity of Face Representation Embeddings"),
74
- gr.outputs.Textbox(label="Cosine similarity of Face Verification Embeddings"),
75
- gr.outputs.Textbox(label="Response")],
76
  title=title,
77
  description=description,
78
  article=article,
 
61
 
62
 
63
  title = "facetorch-app"
64
+ description = "Demo of facetorch, a face analysis Python library that implements open-source pre-trained neural networks for face detection, representation learning, verification, expression recognition, deepfake detection, and 3D alignment. Try selecting one of the example images or upload your own. This work would not be possible without the researchers and engineers who trained the models (sources and credits can be found in the facetorch repository)."
65
  article = "<p style='text-align: center'><a href='https://github.com/tomas-gajarsky/facetorch' style='text-align:center' target='_blank'>facetorch GitHub repository</a></p>"
66
 
67
  demo=gr.Interface(
68
  inference,
69
+ [gr.Image(label="Input", type="filepath")],
70
+ [gr.Image(type="pil", label="Face Detection and 3D Landmarks"),
71
+ gr.Textbox(label="Facial Expression Recognition"),
72
+ gr.Textbox(label="DeepFake Detection"),
73
+ gr.Textbox(label="Cosine similarity of Face Representation Embeddings"),
74
+ gr.Textbox(label="Cosine similarity of Face Verification Embeddings"),
75
+ gr.Textbox(label="Response")],
76
  title=title,
77
  description=description,
78
  article=article,