Spaces:
Runtime error
Runtime error
Commit
•
d4c8cee
1
Parent(s):
0db9e70
Update app layout
Browse files
app.py
CHANGED
@@ -26,19 +26,17 @@ def get_traits(video):
|
|
26 |
|
27 |
|
28 |
params = dict(
|
29 |
-
# outputs=gr.Label(num_top_classes=5, label="Results"),
|
30 |
-
# title="Personality Traits Prediction 📑",
|
31 |
description="Predicts the Big-Five psychology traits of a person based an short introduction video. Adapted from [Deep Impression: Audiovisual Deep Residual Networks for Multimodal Apparent Personality Trait Recognition](https://arxiv.org/abs/1609.05119).",
|
32 |
article=" ".join(DESCRIPTION),
|
33 |
thumbnail="https://cdn-icons-png.flaticon.com/512/3392/3392044.png",
|
34 |
-
examples="egs",
|
35 |
-
cache_examples=False,
|
36 |
)
|
37 |
|
38 |
primary_interface = gr.Interface(
|
39 |
get_traits,
|
40 |
inputs=gr.Video(label="Video", include_audio=True),
|
41 |
outputs=gr.Label(num_top_classes=5, label="Results"),
|
|
|
|
|
42 |
**params,
|
43 |
)
|
44 |
|
|
|
26 |
|
27 |
|
28 |
params = dict(
|
|
|
|
|
29 |
description="Predicts the Big-Five psychology traits of a person based an short introduction video. Adapted from [Deep Impression: Audiovisual Deep Residual Networks for Multimodal Apparent Personality Trait Recognition](https://arxiv.org/abs/1609.05119).",
|
30 |
article=" ".join(DESCRIPTION),
|
31 |
thumbnail="https://cdn-icons-png.flaticon.com/512/3392/3392044.png",
|
|
|
|
|
32 |
)
|
33 |
|
34 |
primary_interface = gr.Interface(
|
35 |
get_traits,
|
36 |
inputs=gr.Video(label="Video", include_audio=True),
|
37 |
outputs=gr.Label(num_top_classes=5, label="Results"),
|
38 |
+
examples="egs",
|
39 |
+
cache_examples=True,
|
40 |
**params,
|
41 |
)
|
42 |
|