Spaces:
Running
Running
tomas-gajarsky
commited on
Commit
•
fc55db6
1
Parent(s):
ba05218
Update app.py
Browse files
app.py
CHANGED
@@ -9,10 +9,6 @@ analyzer = FaceAnalyzer(cfg.analyzer)
|
|
9 |
|
10 |
|
11 |
def inference(path_image):
|
12 |
-
analyzer.logger.info(path_image)
|
13 |
-
# analyzer.logger.info(image.shape)
|
14 |
-
# analyzer.logger.info(image.mean())
|
15 |
-
# analyzer.logger.info(image.std())
|
16 |
response = analyzer.run(
|
17 |
path_image=path_image,
|
18 |
batch_size=cfg.batch_size,
|
@@ -31,7 +27,7 @@ article = "<p style='text-align: center'><a href='https://github.com/tomas-gajar
|
|
31 |
|
32 |
demo=gr.Interface(
|
33 |
inference,
|
34 |
-
[gr.inputs.Image(label="Input", type=
|
35 |
gr.outputs.Image(type="pil", label="Output"),
|
36 |
title=title,
|
37 |
description=description,
|
|
|
9 |
|
10 |
|
11 |
def inference(path_image):
|
|
|
|
|
|
|
|
|
12 |
response = analyzer.run(
|
13 |
path_image=path_image,
|
14 |
batch_size=cfg.batch_size,
|
|
|
27 |
|
28 |
demo=gr.Interface(
|
29 |
inference,
|
30 |
+
[gr.inputs.Image(label="Input", type="filepath")],
|
31 |
gr.outputs.Image(type="pil", label="Output"),
|
32 |
title=title,
|
33 |
description=description,
|