Spaces:
Running
Running
tomas-gajarsky
commited on
Commit
·
72e01bc
1
Parent(s):
1c2077e
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def inference(path_image: str) -> Tuple:
|
|
60 |
return out_tuple
|
61 |
|
62 |
|
63 |
-
title = "
|
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 |
|
@@ -78,4 +78,5 @@ demo=gr.Interface(
|
|
78 |
article=article,
|
79 |
examples=[["./test5.jpg"], ["./test.jpg"], ["./test4.jpg"], ["./test8.jpg"], ["./test6.jpg"], ["./test3.jpg"], ["./test10.jpg"]],
|
80 |
)
|
|
|
81 |
demo.launch(server_name="0.0.0.0", server_port=7860, debug=True)
|
|
|
60 |
return out_tuple
|
61 |
|
62 |
|
63 |
+
title = "Face Analysis"
|
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 |
|
|
|
78 |
article=article,
|
79 |
examples=[["./test5.jpg"], ["./test.jpg"], ["./test4.jpg"], ["./test8.jpg"], ["./test6.jpg"], ["./test3.jpg"], ["./test10.jpg"]],
|
80 |
)
|
81 |
+
demo.queue(concurrency_count=2, status_update_rate=2, api_open=False)
|
82 |
demo.launch(server_name="0.0.0.0", server_port=7860, debug=True)
|