Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -191,7 +191,9 @@ with gr.Blocks() as iface:
|
|
| 191 |
- **Frame Rate Limitations**: Videos recorded at 10 or 20 fps are not suitable for reliably capturing micro-expressions due to their rapid onset and brief duration.
|
| 192 |
|
| 193 |
""")
|
| 194 |
-
|
|
|
|
|
|
|
| 195 |
df_store = gr.State()
|
| 196 |
mse_features_store = gr.State()
|
| 197 |
mse_posture_store = gr.State()
|
|
@@ -222,6 +224,18 @@ with gr.Blocks() as iface:
|
|
| 222 |
inputs=None,
|
| 223 |
outputs=results_group
|
| 224 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
|
| 226 |
if __name__ == "__main__":
|
| 227 |
iface.launch()
|
|
|
|
| 191 |
- **Frame Rate Limitations**: Videos recorded at 10 or 20 fps are not suitable for reliably capturing micro-expressions due to their rapid onset and brief duration.
|
| 192 |
|
| 193 |
""")
|
| 194 |
+
example_video_1 = gr.Video(value="appendix/Bill Clinton and Jim Lehrer.mp4", label="Example Video 1")
|
| 195 |
+
example_video_2 = gr.Video(value="appendix/Wade_Wilson_Penalty_Phase_Trial.mp4", label="Example Video 2")
|
| 196 |
+
|
| 197 |
df_store = gr.State()
|
| 198 |
mse_features_store = gr.State()
|
| 199 |
mse_posture_store = gr.State()
|
|
|
|
| 224 |
inputs=None,
|
| 225 |
outputs=results_group
|
| 226 |
)
|
| 227 |
+
|
| 228 |
+
example_video_1.click(
|
| 229 |
+
lambda: "appendix/Bill Clinton and Jim Lehrer.mp4",
|
| 230 |
+
None,
|
| 231 |
+
video_input,
|
| 232 |
+
)
|
| 233 |
+
|
| 234 |
+
example_video_2.click(
|
| 235 |
+
lambda: "appendix/Wade_Wilson_Penalty_Phase_Trial.mp4",
|
| 236 |
+
None,
|
| 237 |
+
video_input,
|
| 238 |
+
)
|
| 239 |
|
| 240 |
if __name__ == "__main__":
|
| 241 |
iface.launch()
|