LAP-DEV commited on
Commit
682af97
·
verified ·
1 Parent(s): 0684654

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -38
app.py CHANGED
@@ -122,45 +122,46 @@ class App:
122
  value=self.whisper_inf.diarizer.get_device(),
123
  interactive=True, visible=False)
124
 
125
- with gr.Group():
126
- gr.Markdown("⚠ experimental features sdf dsfdsf sdfsd sdfsd")
127
-
128
- with gr.Accordion("Voice Detection Filter", open=False, visible=True):
129
- cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=vad_params["vad_filter"],
130
- interactive=True,
131
- info="Enable to transcribe only detected voice parts")
132
- sd_threshold = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label="Speech Threshold",
133
- value=vad_params["threshold"],
134
- info="Lower it to be more sensitive to small sounds")
135
- nb_min_speech_duration_ms = gr.Number(label="Minimum Speech Duration (ms)", precision=0,
136
- value=vad_params["min_speech_duration_ms"],
137
- info="Final speech chunks shorter than this time are thrown out")
138
- nb_max_speech_duration_s = gr.Number(label="Maximum Speech Duration (s)",
139
- value=vad_params["max_speech_duration_s"],
140
- info="Maximum duration of speech chunks in seconds")
141
- nb_min_silence_duration_ms = gr.Number(label="Minimum Silence Duration (ms)", precision=0,
142
- value=vad_params["min_silence_duration_ms"],
143
- info="In the end of each speech chunk wait for this time"
144
- " before separating it")
145
- nb_speech_pad_ms = gr.Number(label="Speech Padding (ms)", precision=0, value=vad_params["speech_pad_ms"],
146
- info="Final speech chunks are padded by this time each side")
147
 
148
- with gr.Accordion("Background Music Remover Filter", open=False):
149
- cb_bgm_separation = gr.Checkbox(label="Enable Background Music Remover Filter", value=uvr_params["is_separate_bgm"],
150
- info="Enable to remove background music by submodel before transcribing",
151
- interactive=True)
152
- dd_uvr_device = gr.Dropdown(label="Device",
153
- value=self.whisper_inf.music_separator.device,
154
- choices=self.whisper_inf.music_separator.available_devices,
155
- interactive=True, visible=False)
156
- dd_uvr_model_size = gr.Dropdown(label="Model", value=uvr_params["model_size"],
157
- choices=self.whisper_inf.music_separator.available_models)
158
- nb_uvr_segment_size = gr.Number(label="Segment Size", value=uvr_params["segment_size"], precision=0,
159
- interactive=True, visible=False)
160
- cb_uvr_save_file = gr.Checkbox(label="Save separated files to output", value=uvr_params["save_file"],
161
- interactive=True, visible=False)
162
- cb_uvr_enable_offload = gr.Checkbox(label="Offload sub model after removing background music",value=uvr_params["enable_offload"],
163
- interactive=True, visible=False)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
 
165
  with gr.Accordion("Advanced processing options", open=False, visible=False):
166
  nb_beam_size = gr.Number(label="Beam Size", value=whisper_params["beam_size"], precision=0, interactive=True,
 
122
  value=self.whisper_inf.diarizer.get_device(),
123
  interactive=True, visible=False)
124
 
125
+ with gr.Row():
126
+ with gr.Column(scale=1):
127
+ gr.Markdown("⚠ experimental features sdf dsfdsf sdfsd sdfsd")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
+ with gr.Accordion("Voice Detection Filter", open=False, visible=True):
130
+ cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=vad_params["vad_filter"],
131
+ interactive=True,
132
+ info="Enable to transcribe only detected voice parts")
133
+ sd_threshold = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label="Speech Threshold",
134
+ value=vad_params["threshold"],
135
+ info="Lower it to be more sensitive to small sounds")
136
+ nb_min_speech_duration_ms = gr.Number(label="Minimum Speech Duration (ms)", precision=0,
137
+ value=vad_params["min_speech_duration_ms"],
138
+ info="Final speech chunks shorter than this time are thrown out")
139
+ nb_max_speech_duration_s = gr.Number(label="Maximum Speech Duration (s)",
140
+ value=vad_params["max_speech_duration_s"],
141
+ info="Maximum duration of speech chunks in seconds")
142
+ nb_min_silence_duration_ms = gr.Number(label="Minimum Silence Duration (ms)", precision=0,
143
+ value=vad_params["min_silence_duration_ms"],
144
+ info="In the end of each speech chunk wait for this time"
145
+ " before separating it")
146
+ nb_speech_pad_ms = gr.Number(label="Speech Padding (ms)", precision=0, value=vad_params["speech_pad_ms"],
147
+ info="Final speech chunks are padded by this time each side")
148
+
149
+ with gr.Accordion("Background Music Remover Filter", open=False):
150
+ cb_bgm_separation = gr.Checkbox(label="Enable Background Music Remover Filter", value=uvr_params["is_separate_bgm"],
151
+ info="Enable to remove background music by submodel before transcribing",
152
+ interactive=True)
153
+ dd_uvr_device = gr.Dropdown(label="Device",
154
+ value=self.whisper_inf.music_separator.device,
155
+ choices=self.whisper_inf.music_separator.available_devices,
156
+ interactive=True, visible=False)
157
+ dd_uvr_model_size = gr.Dropdown(label="Model", value=uvr_params["model_size"],
158
+ choices=self.whisper_inf.music_separator.available_models)
159
+ nb_uvr_segment_size = gr.Number(label="Segment Size", value=uvr_params["segment_size"], precision=0,
160
+ interactive=True, visible=False)
161
+ cb_uvr_save_file = gr.Checkbox(label="Save separated files to output", value=uvr_params["save_file"],
162
+ interactive=True, visible=False)
163
+ cb_uvr_enable_offload = gr.Checkbox(label="Offload sub model after removing background music",value=uvr_params["enable_offload"],
164
+ interactive=True, visible=False)
165
 
166
  with gr.Accordion("Advanced processing options", open=False, visible=False):
167
  nb_beam_size = gr.Number(label="Beam Size", value=whisper_params["beam_size"], precision=0, interactive=True,