Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -162,9 +162,9 @@ with gr.Blocks() as demo:
|
|
162 |
with gr.Column():
|
163 |
json_output = gr.JSON(label="Shots detected")
|
164 |
file_output = gr.File(label="Downloadable Shots")
|
165 |
-
gallery_output = gr.Gallery(label="Still Images from each shot", columns = 3)
|
166 |
|
167 |
run_button.click(fn=find_scenes, inputs=[video_input, threshold], outputs=[json_output, file_output, gallery_output])
|
168 |
clear_button.click(fn=clear_app, inputs = None, outputs=[video_input, threshold, json_output, file_output, gallery_output])
|
169 |
-
|
170 |
-
|
|
|
162 |
with gr.Column():
|
163 |
json_output = gr.JSON(label="Shots detected")
|
164 |
file_output = gr.File(label="Downloadable Shots")
|
165 |
+
gallery_output = gr.Gallery(label="Still Images from each shot", object_fit = "cover", columns = 3)
|
166 |
|
167 |
run_button.click(fn=find_scenes, inputs=[video_input, threshold], outputs=[json_output, file_output, gallery_output])
|
168 |
clear_button.click(fn=clear_app, inputs = None, outputs=[video_input, threshold, json_output, file_output, gallery_output])
|
169 |
+
|
170 |
+
demo.launch(debug=True)
|