Spaces:
Running
Running
tomas-gajarsky
commited on
Commit
•
3c886fa
1
Parent(s):
91d30ed
Update app.py
Browse files
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
|
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.
|
70 |
-
[gr.
|
71 |
-
gr.
|
72 |
-
gr.
|
73 |
-
gr.
|
74 |
-
gr.
|
75 |
-
gr.
|
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,
|