LAP-DEV commited on
Commit
87dfe72
·
verified ·
1 Parent(s): 49f85ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -126,14 +126,15 @@ class App:
126
  cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English", info="Translate using OpenAI Whisper's built-in module",interactive=True)
127
  cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate to selected language", info="Translate using Facebook's NLLB",interactive=True)
128
 
129
- with gr.Accordion("Options & preprocessing filters", open=False, visible=True):
130
-
131
- with gr.Accordion("Diarization options", open=False, visible=True):
132
- 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).")
133
- dd_diarization_device = gr.Dropdown(label="Device",
134
- choices=self.whisper_inf.diarizer.get_available_device(),
135
- value=self.whisper_inf.diarizer.get_device(),
136
- interactive=True, visible=False)
 
137
 
138
  with gr.Accordion("Voice Detection Filter", open=False, visible=True):
139
  cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=vad_params["vad_filter"],
 
126
  cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English", info="Translate using OpenAI Whisper's built-in module",interactive=True)
127
  cb_translate_output = gr.Checkbox(value=translation_params["translate_output"], label="Translate to selected language", info="Translate using Facebook's NLLB",interactive=True)
128
 
129
+
130
+ with gr.Accordion("Diarization options", open=False, visible=True):
131
+ 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).")
132
+ dd_diarization_device = gr.Dropdown(label="Device",
133
+ choices=self.whisper_inf.diarizer.get_available_device(),
134
+ value=self.whisper_inf.diarizer.get_device(),
135
+ interactive=True, visible=False)
136
+
137
+ with gr.Accordion("Preprocessing filters", open=False, visible=True):
138
 
139
  with gr.Accordion("Voice Detection Filter", open=False, visible=True):
140
  cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=vad_params["vad_filter"],