Kryptone commited on
Commit
181267a
·
verified ·
1 Parent(s): 7de16e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -331,11 +331,11 @@ with gr.Blocks(theme='sudeepshouche/minimalist', title="Global Dataset Maker") a
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],
337
- outputs=gr.Text(label="Output")
338
- )
339
  with gr.TabItem("Split audio files"):
340
  with gr.Row():
341
  with gr.Column():
@@ -346,11 +346,11 @@ with gr.Blocks(theme='sudeepshouche/minimalist', title="Global Dataset Maker") a
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],
352
- outputs=[gr.Text(label="Output"), gr.File(label="Zipped files")]
353
- )
354
  with gr.TabItem("Misc tools"):
355
  with gr.Tab("File splitter"):
356
  gr.Markdown("If you would rather split a single WAV or mp3 audio file, use this method instead.")
 
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],
337
+ # outputs=gr.Text(label="Output")
338
+ #)
339
  with gr.TabItem("Split audio files"):
340
  with gr.Row():
341
  with gr.Column():
 
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],
352
+ # outputs=[gr.Text(label="Output"), gr.File(label="Zipped files")]
353
+ #)
354
  with gr.TabItem("Misc tools"):
355
  with gr.Tab("File splitter"):
356
  gr.Markdown("If you would rather split a single WAV or mp3 audio file, use this method instead.")