Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -112,5 +112,15 @@ with gr.Blocks() as iface:
|
|
112 |
show_progress=True
|
113 |
)
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
if __name__ == "__main__":
|
116 |
iface.launch()
|
|
|
112 |
show_progress=True
|
113 |
)
|
114 |
|
115 |
+
use_example_button.click(
|
116 |
+
fn=use_example,
|
117 |
+
inputs=[],
|
118 |
+
outputs=[video_input],
|
119 |
+
).then(fn=analyze_video,
|
120 |
+
inputs=[video_input],
|
121 |
+
outputs=output_components,
|
122 |
+
show_progress=True
|
123 |
+
)
|
124 |
+
|
125 |
if __name__ == "__main__":
|
126 |
iface.launch()
|