mu-ct commited on
Commit
027aae4
1 Parent(s): 422565d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- if __name__ == "__main__":
170
- demo.launch(debug=True)
 
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)