Kryptone commited on
Commit
7de16e1
·
verified ·
1 Parent(s): 7038b02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -326,10 +326,11 @@ with gr.Blocks(theme='sudeepshouche/minimalist', title="Global Dataset Maker") a
326
  with gr.Row():
327
  with gr.Column():
328
  with gr.Row():
329
- url = gr.Textbox(label="URL")
330
- download_as = gr.Radio(["wav", "mp3"], label="Audio format output", value="wav", info="What should the audio format be output as?")
331
- use_ytdlp = gr.Checkbox(False, label="Use yt_dlp instead of pytube?", info="Sometimes Pytube refuses to download a video. If that happens, check this box to download using yt_dlp instead.")
332
- convertion = gr.Button("Download", variant='primary')
 
333
  convertion.click(
334
  fn=download_video,
335
  inputs=[url, download_as, use_ytdlp],
@@ -339,11 +340,12 @@ with gr.Blocks(theme='sudeepshouche/minimalist', title="Global Dataset Maker") a
339
  with gr.Row():
340
  with gr.Column():
341
  with gr.Row():
342
- mindur = gr.Number(label="Min duration", minimum=1, maximum=10, value=1)
343
- maxdur = gr.Number(label="Max duration", minimum=1, maximum=10, value=5)
344
- name_for_split_files = gr.Textbox(label="Name for split files")
345
- show_amount_of_files_and_file_dur = gr.Checkbox(False, label="Show total amount of files and duration?")
346
- splitbtn = gr.Button("Split", variant='primary')
 
347
  splitbtn.click(
348
  split_audio_from_yt_video,
349
  inputs=[mindur, maxdur, name_for_split_files, show_amount_of_files_and_file_dur],
 
326
  with gr.Row():
327
  with gr.Column():
328
  with gr.Row():
329
+ gr.Markdown("Currently broken. Use Stacher in the meantime.")
330
+ #url = gr.Textbox(label="URL")
331
+ #download_as = gr.Radio(["wav", "mp3"], label="Audio format output", value="wav", info="What should the audio format be output as?")
332
+ #use_ytdlp = gr.Checkbox(False, label="Use yt_dlp instead of pytube?", info="Sometimes Pytube refuses to download a video. If that happens, check this box to download using yt_dlp instead.")
333
+ #convertion = gr.Button("Download", variant='primary')
334
  convertion.click(
335
  fn=download_video,
336
  inputs=[url, download_as, use_ytdlp],
 
340
  with gr.Row():
341
  with gr.Column():
342
  with gr.Row():
343
+ gr.Markdown("Offline due to the download video section not working. If you have an audio file however, go to the 'Misc Tools' tab to split that instead.")
344
+ #mindur = gr.Number(label="Min duration", minimum=1, maximum=10, value=1)
345
+ #maxdur = gr.Number(label="Max duration", minimum=1, maximum=10, value=5)
346
+ #name_for_split_files = gr.Textbox(label="Name for split files")
347
+ #show_amount_of_files_and_file_dur = gr.Checkbox(False, label="Show total amount of files and duration?")
348
+ #splitbtn = gr.Button("Split", variant='primary')
349
  splitbtn.click(
350
  split_audio_from_yt_video,
351
  inputs=[mindur, maxdur, name_for_split_files, show_amount_of_files_and_file_dur],