kevinwang676 commited on
Commit
c359737
1 Parent(s): 58871e6

Update app_multi.py

Browse files
Files changed (1) hide show
  1. app_multi.py +12 -0
app_multi.py CHANGED
@@ -339,6 +339,18 @@ with app:
339
  'A lot of inspiration from what\'s already out there, including [zomehwh/rvc-models](https://huggingface.co/spaces/zomehwh/rvc-models) & [DJQmUKV/rvc-inference](https://huggingface.co/spaces/DJQmUKV/rvc-inference).\n ' # thx noqa
340
  )
341
 
 
 
 
 
 
 
 
 
 
 
 
 
342
  with gr.Row():
343
  with gr.Column():
344
  with gr.Tab('Audio conversion'):
 
339
  'A lot of inspiration from what\'s already out there, including [zomehwh/rvc-models](https://huggingface.co/spaces/zomehwh/rvc-models) & [DJQmUKV/rvc-inference](https://huggingface.co/spaces/DJQmUKV/rvc-inference).\n ' # thx noqa
340
  )
341
 
342
+ with gr.Tab("YouTube Video to Audio"):
343
+ with gr.Row():
344
+ with gr.Column():
345
+ ydl_url_input = gr.Textbox(label="Enter URL YouTube")
346
+ start = gr.Number(value=0, label="Start Time (seconds)")
347
+ end = gr.Number(value=15, label="End Time (seconds)")
348
+ ydl_url_submit = gr.Button("Convert Now", variant="primary")
349
+ with gr.Column():
350
+ ydl_audio_output = gr.Audio(label="Audio from YouTube")
351
+
352
+ ydl_url_submit.click(fn=youtube_downloader, inputs=[ydl_url_input, start, end], outputs=[ydl_audio_output])
353
+
354
  with gr.Row():
355
  with gr.Column():
356
  with gr.Tab('Audio conversion'):