import gradio as gr from gradio_videogallery import videogallery def infer(files): return files with gr.Blocks() as demo: with gr.Column(): gr.Markdown(""" # Gradio Video Gallery Example """) with gr.Row(): with gr.Column(): files_in = gr.File(label="Drop Some Videos", file_count="multiple", file_types=['video']) submit_btn = gr.Button("Submit") video_gallery = videogallery(label="Video Gallery") # video_gallery = gr.File(label="Video Gallery") submit_btn.click( fn = infer, inputs = [files_in], outputs = [video_gallery] ) demo.queue().launch()