feat: video to images

This commit is contained in:
Artemy 2023-04-16 10:12:04 +03:00
parent 7bf970cf1b
commit eb26452ad6
3 changed files with 9 additions and 4 deletions

View file

@ -1,12 +1,16 @@
import gradio as gr
from processing.bulk import video_to_images
with gr.Blocks() as app:
gr.Markdown(
"Convert video to images. # **WIP, not working**")
"Convert video to images.")
with gr.Row():
with gr.Column():
video = gr.Video(label="Video")
with gr.Column():
format = gr.Radio(
choices=["png", "jpg"], value="png", label="Format of image")
submit = gr.Button("Submit")
submit.click(fn=video_to_images, inputs=[video, format])