_Noxty commited on
Commit
37e4a75
·
verified ·
1 Parent(s): 15f6d19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -22
app.py CHANGED
@@ -44,18 +44,20 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
44
  value = lambda : None,
45
  interactive = True
46
  )
47
- with gr.Accordion("Advanced settings", open = False):
48
- with gr.Group():
49
- with gr.Row():
50
- roformer_segment_size = gr.Slider(
51
- label = "Segment size",
52
- info = "Larger consumes more resources, but may give better results",
53
- minimum = 32,
54
- maximum = 4000,
55
- step = 32,
56
- value = 256,
57
- interactive = True
58
- )
 
 
59
  roformer_override_segment_size = gr.Checkbox(
60
  label = "Override segment size",
61
  info = "Override model default segment size instead of using the model default value",
@@ -91,16 +93,14 @@ with gr.Blocks(title = "🎵 Audio Separator UI 🎵") as app:
91
  value = 0.1,
92
  interactive = True
93
  )
94
- roformer_amplification_threshold = gr.Slider(
95
- label = "Amplification threshold",
96
- info = "The threshold for audio amplification",
97
- minimum = 0.1,
98
- maximum = 1,
99
- step = 0.1,
100
- value = 0.1,
101
- interactive = True
102
- )
103
- with gr.Row():
104
  roformer_audio = gr.Audio(
105
  label = "Input audio",
106
  type = "filepath",
 
44
  value = lambda : None,
45
  interactive = True
46
  )
47
+ with gr.Column():
48
+ with gr.Accordion("Advanced settings", open = False):
49
+ with gr.Group():
50
+ with gr.Row():
51
+ roformer_segment_size = gr.Slider(
52
+ label = "Segment size",
53
+ info = "Larger consumes more resources, but may give better results",
54
+ minimum = 32,
55
+ maximum = 4000,
56
+ step = 32,
57
+ value = 256,
58
+ interactive = True
59
+ )
60
+
61
  roformer_override_segment_size = gr.Checkbox(
62
  label = "Override segment size",
63
  info = "Override model default segment size instead of using the model default value",
 
93
  value = 0.1,
94
  interactive = True
95
  )
96
+ roformer_amplification_threshold = gr.Slider(label = "Amplification threshold",info = "The threshold for audio amplification", minimum = 0.1,maximum = 1,step = 0.1,value = 0.1,interactive = True)
97
+
98
+
99
+
100
+
101
+
102
+ with gr.Column():
103
+
 
 
104
  roformer_audio = gr.Audio(
105
  label = "Input audio",
106
  type = "filepath",