Kryptone commited on
Commit
4359fb3
·
verified ·
1 Parent(s): 7233742

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +75 -73
app.py CHANGED
@@ -369,17 +369,18 @@ with gr.Blocks(theme='sudeepshouche/minimalist', title="Global Dataset Maker") a
369
 
370
  with gr.Tab("Audio only download"):
371
  gr.Markdown("If you want to download only the audio (to isolate bgm using UVR, etc), use this method, which will only extract audio and not split the audio.")
 
372
  with gr.Row():
373
  with gr.Column():
374
  with gr.Row():
375
- yt_video = gr.Textbox(label="URL")
376
- audio_output_format = gr.Radio(["wav", "mp3"], value="wav", label="Download audio as:")
377
- commence_download = gr.Button("Download", variant='primary')
378
- commence_download.click(
379
- download_video_as_audio_only,
380
- [yt_video, audio_output_format],
381
- [gr.Text(label="Output"), gr.File(label="Zipped audio file")]
382
- )
383
  with gr.Tab("MP4 to mp3/wav converter"):
384
  gr.Markdown("If you have an mp4 file, you can convert it to mp3 or wav here. Only click the 'Remove file' button when done.")
385
  with gr.Row():
@@ -468,71 +469,72 @@ with gr.Blocks(theme='sudeepshouche/minimalist', title="Global Dataset Maker") a
468
  [gr.Text(label="Output")]
469
  )
470
  with gr.Tab("Send Request via yt link"):
471
- with gr.Row():
472
- with gr.Column():
473
- with gr.Row():
474
- mvsep_key2 = gr.Textbox(placeholder="Enter your MVSEP API key.", label="API key")
475
- yt_link = gr.Textbox(label="YouTube link")
476
- sep_dropdown2 = gr.Dropdown(
477
- ["0 - spleeter (vocals, music)",
478
- "1 - spleeter (vocals, drums, bass, other)",
479
- "2 - spleeter (vocals, drums, bass, piano, other)",
480
- "3 - unmix XL (vocals, drums, bass, other)",
481
- "4 - unmix HQ (vocals, drums, bass, other)",
482
- "5 - unmix SD (vocals, drums, bass, other)",
483
- "6 - unmix SE (vocals, music)",
484
- "7 - MDX A (vocals, drums, bass, other)",
485
- "8 - MDX B (vocals, drums, bass, other)",
486
- "9 - UVR HQ (vocals, music)",
487
- "10 - Demucs3 Model A (vocals, drums, bass, other)",
488
- "11 - Demucs3 Model B (vocals, drums, bass, other)",
489
- "12 - MDX-B Karaoke (lead/back vocals)",
490
- "13 - Demucs2 (vocals, drums, bass, other)",
491
- "14 - Zero Shot (Query Based) (LQ)",
492
- "15 - Danna sep (vocals, drums, bass, other)",
493
- "16 - Byte Dance (vocals, drums, bass, other)",
494
- "17 - UVRv5 Demucs (vocals, music)",
495
- "18 - MVSep DNR (music, sfx, speech)",
496
- "19 - MVSep Vocal Model (vocals, music)",
497
- "20 - Demucs4 HT (vocals, drums, bass, other)",
498
- "--------------------------------------------------------------------------------------------------",
499
- "22 - FoxJoy Reverb Removal (other)",
500
- "23 - MDX B (vocals, instrumental)",
501
- "24 - MVSep Demucs4HT DNR (dialog, sfx, music)",
502
- "25 - MDX23C (vocals, instrumental)",
503
- "26 - Ensemble (vocals, instrumental) [PREMIUM ONLY]",
504
- "27 - Demucs4 Vocals 2023 (vocals, instrumental)",
505
- "28 - Ensemble (vocals, instrumental, bass, drums, other) [PREMIUM ONLY]",
506
- "29 - MVSep Piano (piano, other)",
507
- "30 - Ensemble All-In (vocals, bass, drums, piano, guitar, lead/back vocals, other) [PREMIUM ONLY]",
508
- "31 - MVSep Guitar (guitar, other)",
509
- "-------------------------------------------------------------------------------------------------",
510
- "33 - Vit Large 23 (vocals, instrum)",
511
- "34 - MVSep Crowd removal (crowd, other)",
512
- "35 - MVSep MelBand Roformer (vocals, instrum)",
513
- "36 - BandIt Plus (speech, music, effects)",
514
- "37 - DrumSep (kick, snare, cymbals, toms)",
515
- "38 - LarsNet (kick, snare, cymbals, toms, hihat)",
516
- "39 - Whisper (extract text from audio)",
517
- "40 - BS Roformer (vocals, instrumental)",
518
- "41 - MVSep Bass (bass, other)",
519
- "42 - MVSep MultiSpeaker (MDX23C)",
520
- "43 - MVSEP Multichannel BS (vocals, inst)",
521
- "44 - MVSep Drums (drums, other)",
522
- "45 - Bandit v2 (speech, music, effects)"
523
- ],
524
- max_choices=1,
525
- value="11 - Demucs3 Model B (vocals, drums, bass, other)",
526
- label="Model type:",
527
- interactive=True,
528
- type='index'
529
- )
530
- send_req2 = gr.Button("Send request", variant='primary')
531
- send_req2.click(
532
- mvsep_yt_link_request,
533
- [mvsep_key2, sep_dropdown2, yt_link],
534
- [gr.Text(label="Output")]
535
- )
 
536
  with gr.Tab("Get status of request"):
537
  with gr.Row():
538
  with gr.Column():
 
369
 
370
  with gr.Tab("Audio only download"):
371
  gr.Markdown("If you want to download only the audio (to isolate bgm using UVR, etc), use this method, which will only extract audio and not split the audio.")
372
+ gr.Markdown("## Currently broken. Use Stacher in the meantime.")
373
  with gr.Row():
374
  with gr.Column():
375
  with gr.Row():
376
+ # yt_video = gr.Textbox(label="URL")
377
+ # audio_output_format = gr.Radio(["wav", "mp3"], value="wav", label="Download audio as:")
378
+ # commence_download = gr.Button("Download", variant='primary')
379
+ #commence_download.click(
380
+ # download_video_as_audio_only,
381
+ # [yt_video, audio_output_format],
382
+ # [gr.Text(label="Output"), gr.File(label="Zipped audio file")]
383
+ #)
384
  with gr.Tab("MP4 to mp3/wav converter"):
385
  gr.Markdown("If you have an mp4 file, you can convert it to mp3 or wav here. Only click the 'Remove file' button when done.")
386
  with gr.Row():
 
469
  [gr.Text(label="Output")]
470
  )
471
  with gr.Tab("Send Request via yt link"):
472
+ gr.Markdown("## Currently broken. Use MVSEP's actual website in the meantime.")
473
+ #with gr.Row():
474
+ # with gr.Column():
475
+ # with gr.Row():
476
+ # mvsep_key2 = gr.Textbox(placeholder="Enter your MVSEP API key.", label="API key")
477
+ # yt_link = gr.Textbox(label="YouTube link")
478
+ # sep_dropdown2 = gr.Dropdown(
479
+ # ["0 - spleeter (vocals, music)",
480
+ # "1 - spleeter (vocals, drums, bass, other)",
481
+ # "2 - spleeter (vocals, drums, bass, piano, other)",
482
+ # "3 - unmix XL (vocals, drums, bass, other)",
483
+ # "4 - unmix HQ (vocals, drums, bass, other)",
484
+ # "5 - unmix SD (vocals, drums, bass, other)",
485
+ # "6 - unmix SE (vocals, music)",
486
+ # "7 - MDX A (vocals, drums, bass, other)",
487
+ # "8 - MDX B (vocals, drums, bass, other)",
488
+ # "9 - UVR HQ (vocals, music)",
489
+ # "10 - Demucs3 Model A (vocals, drums, bass, other)",
490
+ # "11 - Demucs3 Model B (vocals, drums, bass, other)",
491
+ # "12 - MDX-B Karaoke (lead/back vocals)",
492
+ # "13 - Demucs2 (vocals, drums, bass, other)",
493
+ # "14 - Zero Shot (Query Based) (LQ)",
494
+ # "15 - Danna sep (vocals, drums, bass, other)",
495
+ # "16 - Byte Dance (vocals, drums, bass, other)",
496
+ # "17 - UVRv5 Demucs (vocals, music)",
497
+ # "18 - MVSep DNR (music, sfx, speech)",
498
+ # "19 - MVSep Vocal Model (vocals, music)",
499
+ # "20 - Demucs4 HT (vocals, drums, bass, other)",
500
+ # "--------------------------------------------------------------------------------------------------",
501
+ # "22 - FoxJoy Reverb Removal (other)",
502
+ # "23 - MDX B (vocals, instrumental)",
503
+ # "24 - MVSep Demucs4HT DNR (dialog, sfx, music)",
504
+ # "25 - MDX23C (vocals, instrumental)",
505
+ # "26 - Ensemble (vocals, instrumental) [PREMIUM ONLY]",
506
+ # "27 - Demucs4 Vocals 2023 (vocals, instrumental)",
507
+ # "28 - Ensemble (vocals, instrumental, bass, drums, other) [PREMIUM ONLY]",
508
+ # "29 - MVSep Piano (piano, other)",
509
+ # "30 - Ensemble All-In (vocals, bass, drums, piano, guitar, lead/back vocals, other) [PREMIUM ONLY]",
510
+ # "31 - MVSep Guitar (guitar, other)",
511
+ # "-------------------------------------------------------------------------------------------------",
512
+ # "33 - Vit Large 23 (vocals, instrum)",
513
+ # "34 - MVSep Crowd removal (crowd, other)",
514
+ # "35 - MVSep MelBand Roformer (vocals, instrum)",
515
+ # "36 - BandIt Plus (speech, music, effects)",
516
+ # "37 - DrumSep (kick, snare, cymbals, toms)",
517
+ # "38 - LarsNet (kick, snare, cymbals, toms, hihat)",
518
+ # "39 - Whisper (extract text from audio)",
519
+ # "40 - BS Roformer (vocals, instrumental)",
520
+ # "41 - MVSep Bass (bass, other)",
521
+ # "42 - MVSep MultiSpeaker (MDX23C)",
522
+ # "43 - MVSEP Multichannel BS (vocals, inst)",
523
+ # "44 - MVSep Drums (drums, other)",
524
+ # "45 - Bandit v2 (speech, music, effects)"
525
+ # ],
526
+ # max_choices=1,
527
+ # value="11 - Demucs3 Model B (vocals, drums, bass, other)",
528
+ # label="Model type:",
529
+ # interactive=True,
530
+ # type='index'
531
+ # )
532
+ # send_req2 = gr.Button("Send request", variant='primary')
533
+ # send_req2.click(
534
+ # mvsep_yt_link_request,
535
+ # [mvsep_key2, sep_dropdown2, yt_link],
536
+ # [gr.Text(label="Output")]
537
+ # )
538
  with gr.Tab("Get status of request"):
539
  with gr.Row():
540
  with gr.Column():