File size: 506 Bytes
20bee2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

def split_video(input_video, output_folder, start_time, end_time):
    # Your video splitting logic goes here
    pass

iface = gr.Interface(split_video, 
                      input_types=[gr.inputs.File(), 
                                   gr.inputs.Directory(), 
                                   gr.inputs.Number(), 
                                   gr.inputs.Number()], 
                      output_types=[str], 
                      title="Video Splitter")

iface.launch()