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