LAP-DEV commited on
Commit
bb9712a
·
verified ·
1 Parent(s): e979df6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -122,15 +122,15 @@ class App:
122
  cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English", info="Translate using OpenAI Whisper's built-in module",interactive=True)
123
  cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate to selected language", info="Translate using Facebook's NLLB",interactive=True)
124
 
125
- with gr.Accordion("Diarization options", open=False, visible=True):
126
- tb_hf_token = gr.Text(label="Token", value=diarization_params["hf_token"],info="An access token is required to use diarization & can be created [here](https://hf.co/settings/tokens). If not done yet for your account, you need to accept the terms & conditions of [diarization](https://huggingface.co/pyannote/speaker-diarization-3.1) & [segmentation](https://huggingface.co/pyannote/segmentation-3.0).")
127
- dd_diarization_device = gr.Dropdown(label="Device",
128
- choices=self.whisper_inf.diarizer.get_available_device(),
129
- value=self.whisper_inf.diarizer.get_device(),
130
- interactive=True, visible=False)
131
-
132
- with gr.Accordion("Preprocessing options", open=False, visible=True):
133
-
134
  with gr.Accordion("Voice Detection Filter", open=False, visible=True):
135
  cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=vad_params["vad_filter"],
136
  info="Enable to transcribe only detected voice parts",
 
122
  cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English", info="Translate using OpenAI Whisper's built-in module",interactive=True)
123
  cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate to selected language", info="Translate using Facebook's NLLB",interactive=True)
124
 
125
+ with gr.Accordion("Options", open=False, visible=True):
126
+
127
+ with gr.Accordion("Diarization", open=False, visible=True):
128
+ tb_hf_token = gr.Text(label="Token", value=diarization_params["hf_token"],info="An access token is required to use diarization & can be created [here](https://hf.co/settings/tokens). If not done yet for your account, you need to accept the terms & conditions of [diarization](https://huggingface.co/pyannote/speaker-diarization-3.1) & [segmentation](https://huggingface.co/pyannote/segmentation-3.0).")
129
+ dd_diarization_device = gr.Dropdown(label="Device",
130
+ choices=self.whisper_inf.diarizer.get_available_device(),
131
+ value=self.whisper_inf.diarizer.get_device(),
132
+ interactive=True, visible=False)
133
+
134
  with gr.Accordion("Voice Detection Filter", open=False, visible=True):
135
  cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=vad_params["vad_filter"],
136
  info="Enable to transcribe only detected voice parts",