Lamara091 commited on
Commit
0e10810
·
verified ·
1 Parent(s): 92b4d48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -38,8 +38,12 @@ def setup_interface():
38
  fn=download_video,
39
  inputs=[
40
  gr.Textbox(lines=2, placeholder="Enter YouTube video URL here...", label="YouTube Video URL"),
41
- gr.Textbox(placeholder="Start Time (e.g., 00:00:00)", label="Start Time (HH:MM:SS)"),
42
- gr.Textbox(placeholder="End Time (e.g., 00:05:30)", label="End Time (HH:MM:SS)")
 
 
 
 
43
  ],
44
  outputs=[
45
  gr.Text(label="Status Message"),
 
38
  fn=download_video,
39
  inputs=[
40
  gr.Textbox(lines=2, placeholder="Enter YouTube video URL here...", label="YouTube Video URL"),
41
+ start_time_hours = gr.inputs.Dropdown(range(24), label="Start Hour")
42
+ start_time_minutes = gr.inputs.Dropdown(range(60), label="Start Minute")
43
+ start_time_seconds = gr.inputs.Number(default=0, label="Start Seconds", maximum=59)
44
+ end_time_hours = gr.inputs.Dropdown(range(24), label="End Hour")
45
+ end_time_minutes = gr.inputs.Dropdown(range(60), label="End Minute")
46
+ end_time_seconds = gr.inputs.Number(default=0, label="End Seconds", maximum=59)
47
  ],
48
  outputs=[
49
  gr.Text(label="Status Message"),