Update app.py
Browse files
app.py
CHANGED
@@ -99,17 +99,19 @@ class App:
|
|
99 |
dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", visible=False, info="Output preview format")
|
100 |
|
101 |
with gr.Row():
|
102 |
-
cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization (Token required)",interactive=True)
|
103 |
-
cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)
|
104 |
-
cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True, visible=False)
|
|
|
|
|
|
|
105 |
|
106 |
with gr.Accordion("Diarization options", open=False):
|
107 |
-
|
108 |
tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"],
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
dd_diarization_device = gr.Dropdown(label="Device",
|
114 |
choices=self.whisper_inf.diarizer.get_available_device(),
|
115 |
value=self.whisper_inf.diarizer.get_device())
|
|
|
99 |
dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", visible=False, info="Output preview format")
|
100 |
|
101 |
with gr.Row():
|
102 |
+
#cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization (Token required)",interactive=True)
|
103 |
+
#cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)
|
104 |
+
#cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True, visible=False)
|
105 |
+
cb_diarize = gr.Checkbox(label="Speaker diarization", value=diarization_params["is_diarize"])
|
106 |
+
cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
|
107 |
+
cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)
|
108 |
|
109 |
with gr.Accordion("Diarization options", open=False):
|
|
|
110 |
tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"],
|
111 |
+
info="This is only needed the first time you download the model. If you already have"
|
112 |
+
" models, you don't need to enter. To download the model, you must manually go "
|
113 |
+
"to \"https://huggingface.co/pyannote/speaker-diarization-3.1\" and agree to"
|
114 |
+
" their requirement.")
|
115 |
dd_diarization_device = gr.Dropdown(label="Device",
|
116 |
choices=self.whisper_inf.diarizer.get_available_device(),
|
117 |
value=self.whisper_inf.diarizer.get_device())
|