mirror of
https://github.com/artegoser/image-pluser-webui.git
synced 2024-10-05 14:45:58 +03:00
17 lines
511 B
Python
17 lines
511 B
Python
import gradio as gr
|
|
from processing.bulk import images_to_video
|
|
|
|
with gr.Blocks() as app:
|
|
gr.Markdown("Convert images to video. # **WIP, not working**")
|
|
with gr.Row():
|
|
with gr.Column():
|
|
directory = gr.Text(
|
|
placeholder="A directory with many images of the same size", lines=1, label="Directory")
|
|
|
|
fps = gr.Number(label="FPS")
|
|
submit = gr.Button("Submit")
|
|
|
|
submit.click(
|
|
fn=images_to_video,
|
|
inputs=[directory, fps],
|
|
)
|