Spaces:
Running
Running
tomas-gajarsky
commited on
Commit
·
b06d326
1
Parent(s):
6342268
Update app.py
Browse files
app.py
CHANGED
@@ -43,18 +43,18 @@ def inference(path_image: str) -> Tuple:
|
|
43 |
return out_tuple
|
44 |
|
45 |
|
46 |
-
title = "facetorch"
|
47 |
-
description = "Demo of facetorch, a Python library that
|
48 |
-
article = "<p style='text-align: center'><a href='https://github.com/tomas-gajarsky/facetorch' target='_blank'>facetorch GitHub repository</a></p>"
|
49 |
|
50 |
demo=gr.Interface(
|
51 |
inference,
|
52 |
[gr.inputs.Image(label="Input", type="filepath")],
|
53 |
-
[gr.outputs.Image(type="pil", label="
|
54 |
gr.outputs.Textbox(label="Facial Expression Recognition"),
|
55 |
gr.outputs.Textbox(label="DeepFake Detection"),
|
56 |
-
gr.outputs.Textbox(label="Cosine similarity
|
57 |
-
gr.outputs.Textbox(label="Cosine similarity
|
58 |
gr.outputs.Textbox(label="Response")],
|
59 |
title=title,
|
60 |
description=description,
|
|
|
43 |
return out_tuple
|
44 |
|
45 |
|
46 |
+
title = "facetorch-app"
|
47 |
+
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. The quality of different models varies. Use responsibly."
|
48 |
+
article = "<p style='text-align: center'><a href='https://github.com/tomas-gajarsky/facetorch' target='_blank'>facetorch GitHub repository</a></p><a href='https://pypi.org/project/facetorch/'><img src='https://img.shields.io/pypi/v/facetorch' alt='PyPI'></a><a href='https://anaconda.org/conda-forge/facetorch'><img src='https://img.shields.io/conda/vn/conda-forge/facetorch' alt='Conda (channel only)'></a><a href='https://raw.githubusercontent.com/tomas-gajarsky/facetorch/main/LICENSE'><img src='https://img.shields.io/pypi/l/facetorch' alt='PyPI - License'></a><p><img src='https://raw.githubusercontent.com/tomas-gajarsky/facetorch/main/data/facetorch-logo-64.png' alt='' title='facetorch logo'></p>"
|
49 |
|
50 |
demo=gr.Interface(
|
51 |
inference,
|
52 |
[gr.inputs.Image(label="Input", type="filepath")],
|
53 |
+
[gr.outputs.Image(type="pil", label="Face Detection and 3D Landmarks"),
|
54 |
gr.outputs.Textbox(label="Facial Expression Recognition"),
|
55 |
gr.outputs.Textbox(label="DeepFake Detection"),
|
56 |
+
gr.outputs.Textbox(label="Cosine similarity of Face Representation Embeddings"),
|
57 |
+
gr.outputs.Textbox(label="Cosine similarity of Face Verification Embeddings"),
|
58 |
gr.outputs.Textbox(label="Response")],
|
59 |
title=title,
|
60 |
description=description,
|