Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,12 +42,12 @@ with gr.Blocks(css="app.css") as demo:
|
|
42 |
output_face = gr.Video(label="Pre-processed video", scale=1, elem_classes="video3")
|
43 |
output_heatmaps = gr.Video(label="Heatmaps", scale=1, elem_classes="video4")
|
44 |
output_statistics = gr.Plot(label="Statistics of emotions", elem_classes="stat")
|
45 |
-
gr.Examples(
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
|
52 |
with gr.Tab("Static App"):
|
53 |
gr.Markdown(value=DESCRIPTION_STATIC)
|
@@ -66,18 +66,18 @@ with gr.Blocks(css="app.css") as demo:
|
|
66 |
output_image = gr.Image(label="Face", scale=1, elem_classes="dl5")
|
67 |
output_heatmap = gr.Image(label="Heatmap", scale=1, elem_classes="dl2")
|
68 |
output_label = gr.Label(num_top_classes=3, scale=1, elem_classes="dl3")
|
69 |
-
gr.Examples(
|
70 |
-
|
71 |
-
"images/fig7.jpg",
|
72 |
-
"images/fig1.jpg",
|
73 |
-
"images/fig2.jpg",
|
74 |
-
"images/fig3.jpg",
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
with gr.Tab("Authors"):
|
82 |
gr.Markdown(value=AUTHORS)
|
83 |
|
@@ -98,9 +98,9 @@ with gr.Blocks(css="app.css") as demo:
|
|
98 |
fn=preprocess_video_and_predict,
|
99 |
inputs=input_video,
|
100 |
outputs=[
|
101 |
-
|
102 |
-
|
103 |
-
output_heatmaps,
|
104 |
output_statistics
|
105 |
],
|
106 |
queue=True,
|
@@ -110,9 +110,9 @@ with gr.Blocks(css="app.css") as demo:
|
|
110 |
inputs=[],
|
111 |
outputs=[
|
112 |
input_video,
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
output_statistics
|
117 |
],
|
118 |
queue=True,
|
|
|
42 |
output_face = gr.Video(label="Pre-processed video", scale=1, elem_classes="video3")
|
43 |
output_heatmaps = gr.Video(label="Heatmaps", scale=1, elem_classes="video4")
|
44 |
output_statistics = gr.Plot(label="Statistics of emotions", elem_classes="stat")
|
45 |
+
#gr.Examples(
|
46 |
+
# ["videos/video1.mp4",
|
47 |
+
# "videos/video2.mp4",
|
48 |
+
# ],
|
49 |
+
# [input_video],
|
50 |
+
#)
|
51 |
|
52 |
with gr.Tab("Static App"):
|
53 |
gr.Markdown(value=DESCRIPTION_STATIC)
|
|
|
66 |
output_image = gr.Image(label="Face", scale=1, elem_classes="dl5")
|
67 |
output_heatmap = gr.Image(label="Heatmap", scale=1, elem_classes="dl2")
|
68 |
output_label = gr.Label(num_top_classes=3, scale=1, elem_classes="dl3")
|
69 |
+
#gr.Examples(
|
70 |
+
# [
|
71 |
+
#"images/fig7.jpg",
|
72 |
+
#"images/fig1.jpg",
|
73 |
+
#"images/fig2.jpg",
|
74 |
+
#"images/fig3.jpg",
|
75 |
+
# "images/fig4.jpg",
|
76 |
+
# "images/fig5.jpg",
|
77 |
+
# "images/fig6.jpg",
|
78 |
+
# ],
|
79 |
+
# [input_image],
|
80 |
+
# )
|
81 |
with gr.Tab("Authors"):
|
82 |
gr.Markdown(value=AUTHORS)
|
83 |
|
|
|
98 |
fn=preprocess_video_and_predict,
|
99 |
inputs=input_video,
|
100 |
outputs=[
|
101 |
+
# output_video,
|
102 |
+
# output_face,
|
103 |
+
# output_heatmaps,
|
104 |
output_statistics
|
105 |
],
|
106 |
queue=True,
|
|
|
110 |
inputs=[],
|
111 |
outputs=[
|
112 |
input_video,
|
113 |
+
# output_video,
|
114 |
+
# output_face,
|
115 |
+
# output_heatmaps,
|
116 |
output_statistics
|
117 |
],
|
118 |
queue=True,
|