File size: 521 Bytes
f9bbc26
 
 
 
 
 
 
 
 
 
 
 
 
ea84471
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)