GilbertClaus commited on
Commit
7d44b92
·
1 Parent(s): 7ad4170

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -4,10 +4,10 @@ from youtube import cut_video
4
  iface = gr.Interface(
5
  fn=cut_video,
6
  inputs=[
7
- gr.inputs.Textbox(lines=1, label="Link Video", 'https://www.youtube.com/watch?v=example'),
8
- gr.inputs.Textbox(lines=1, label="Resolusi", 720),
9
- gr.inputs.Textbox(lines=1, label="Start Time (HH:MM:SS.MS)", '00:00:00.000'),
10
- gr.inputs.Textbox(lines=1, label="End Time (HH:MM:SS.MS)", '00:01:00.000'),
11
  ],
12
  outputs=[
13
  gr.outputs.Textbox(label="Video Information"),
@@ -17,5 +17,3 @@ iface = gr.Interface(
17
  title="YouTube Video Cutter",
18
  description="Potong dan download sebagian video YouTube.",
19
  )
20
-
21
- iface.launch()
 
4
  iface = gr.Interface(
5
  fn=cut_video,
6
  inputs=[
7
+ gr.inputs.Textbox(lines=1, label="Link Video"),
8
+ gr.inputs.Textbox(lines=1, label="Resolusi", default=720),
9
+ gr.inputs.Textbox(lines=1, label="Start Time (HH:MM:SS.MS)", default='00:00:00.000'),
10
+ gr.inputs.Textbox(lines=1, label="End Time (HH:MM:SS.MS)", default='00:01:00.000'),
11
  ],
12
  outputs=[
13
  gr.outputs.Textbox(label="Video Information"),
 
17
  title="YouTube Video Cutter",
18
  description="Potong dan download sebagian video YouTube.",
19
  )