fix: name of method and formatting

This commit is contained in:
Artemy 2023-04-16 18:40:08 +03:00
parent 1b259c886f
commit fbc9112fba
9 changed files with 61 additions and 45 deletions

View file

@ -2,15 +2,14 @@ import gradio as gr
from processing.bulk import video_to_images
with gr.Blocks() as app:
gr.Markdown(
"Convert video to images.")
gr.Markdown("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")
choices=["png", "jpg"], value="png", label="Format of image"
)
submit = gr.Button("Submit")
submit.click(fn=video_to_images, inputs=[video, format])