videoencoder / app.py
kratadata
init
ea84471
raw
history blame contribute delete
No virus
521 Bytes
import gradio as gr
import enc
def processFrames(frames, fps, lines, pulselength):
# print(i.name for i in frames)
return enc.video2audio(frames, fps, lines, pulselength)
menu = gr.Interface(
fn=processFrames,
inputs=[gr.File(file_count="multiple", file_types=["image"]), gr.Slider(3, 30, value=10, step=1), gr.Slider(50, 250, value=150, step=10), gr.Slider(0, 1, value=0.2, step=0.1)],
outputs="text").launch(inbrowser=True, show_error=True)
if __name__ == "__main__":
menu.launch(share=True)