general settings as tab

#1
by Hev832 - opened
Files changed (1) hide show
  1. app.py +15 -12
app.py CHANGED
@@ -336,18 +336,7 @@ with gr.Blocks(
336
  )
337
  ) as app:
338
  gr.HTML("<h1> 🎵 Audio-Separator 🎵 </h1>")
339
- with gr.Accordion("General settings", open=False):
340
- with gr.Group():
341
- model_file_dir = gr.Textbox(value="/tmp/audio-separator-models/", label="Directory to cache model files", info="The directory where model files are stored.", placeholder="/tmp/audio-separator-models/")
342
- with gr.Row():
343
- output_dir = gr.Textbox(value="output", label="File output directory", info="The directory where output files will be saved.", placeholder="output")
344
- output_format = gr.Dropdown(value="wav", choices=["wav", "flac", "mp3"], label="Output Format", info="The format of the output audio file.")
345
- with gr.Row():
346
- norm_threshold = gr.Slider(minimum=0.1, maximum=1, step=0.1, value=0.9, label="Normalization threshold", info="The threshold for audio normalization.")
347
- amp_threshold = gr.Slider(minimum=0.1, maximum=1, step=0.1, value=0.6, label="Amplification threshold", info="The threshold for audio amplification.")
348
- with gr.Row():
349
- batch_size = gr.Slider(minimum=1, maximum=16, step=1, value=1, label="Batch Size", info="Larger consumes more RAM but may process slightly faster.")
350
-
351
  with gr.Tab("Roformer"):
352
  with gr.Group():
353
  with gr.Row():
@@ -441,6 +430,20 @@ with gr.Blocks(
441
  demucs_stem5 = gr.Audio(label="Stem 5", type="filepath", interactive=False)
442
  demucs_stem6 = gr.Audio(label="Stem 6", type="filepath", interactive=False)
443
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
444
  demucs_model.change(update_stems, inputs=[demucs_model], outputs=stem6)
445
 
446
  roformer_button.click(
 
336
  )
337
  ) as app:
338
  gr.HTML("<h1> 🎵 Audio-Separator 🎵 </h1>")
339
+
 
 
 
 
 
 
 
 
 
 
 
340
  with gr.Tab("Roformer"):
341
  with gr.Group():
342
  with gr.Row():
 
430
  demucs_stem5 = gr.Audio(label="Stem 5", type="filepath", interactive=False)
431
  demucs_stem6 = gr.Audio(label="Stem 6", type="filepath", interactive=False)
432
 
433
+
434
+ with gr.Tab("General settings"):
435
+ with gr.Group():
436
+ model_file_dir = gr.Textbox(value="/tmp/audio-separator-models/", label="Directory to cache model files", info="The directory where model files are stored.", placeholder="/tmp/audio-separator-models/")
437
+ with gr.Row():
438
+ output_dir = gr.Textbox(value="output", label="File output directory", info="The directory where output files will be saved.", placeholder="output")
439
+ output_format = gr.Dropdown(value="wav", choices=["wav", "flac", "mp3"], label="Output Format", info="The format of the output audio file.")
440
+ with gr.Row():
441
+ norm_threshold = gr.Slider(minimum=0.1, maximum=1, step=0.1, value=0.9, label="Normalization threshold", info="The threshold for audio normalization.")
442
+ amp_threshold = gr.Slider(minimum=0.1, maximum=1, step=0.1, value=0.6, label="Amplification threshold", info="The threshold for audio amplification.")
443
+ with gr.Row():
444
+ batch_size = gr.Slider(minimum=1, maximum=16, step=1, value=1, label="Batch Size", info="Larger consumes more RAM but may process slightly faster.")
445
+
446
+
447
  demucs_model.change(update_stems, inputs=[demucs_model], outputs=stem6)
448
 
449
  roformer_button.click(