Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,11 @@ class App:
|
|
96 |
dd_model = gr.Dropdown(choices=self.whisper_inf.available_models, value=whisper_params["model_size"],label="Model", info="Larger models will increase the quality of the transcription, but reduce performance")
|
97 |
dd_lang = gr.Dropdown(choices=["Automatic Detection"] + self.whisper_inf.available_langs,value=whisper_params["lang"], label="Language", info="If the language is known upfront, always set it manually")
|
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=
|
|
|
|
|
|
|
|
|
100 |
cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization",interactive=True)
|
101 |
tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"],
|
102 |
info="This is only needed the first time you download the model. If you already have"
|
@@ -104,10 +108,6 @@ class App:
|
|
104 |
"to https://huggingface.co/pyannote/speaker-diarization-3.1 and agree to"
|
105 |
" their requirement.")
|
106 |
|
107 |
-
with gr.Row():
|
108 |
-
cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)
|
109 |
-
cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
|
110 |
-
|
111 |
with gr.Accordion("Diarization options", open=False):
|
112 |
dd_diarization_device = gr.Dropdown(label="Device",
|
113 |
choices=self.whisper_inf.diarizer.get_available_device(),
|
|
|
96 |
dd_model = gr.Dropdown(choices=self.whisper_inf.available_models, value=whisper_params["model_size"],label="Model", info="Larger models will increase the quality of the transcription, but reduce performance")
|
97 |
dd_lang = gr.Dropdown(choices=["Automatic Detection"] + self.whisper_inf.available_langs,value=whisper_params["lang"], label="Language", info="If the language is known upfront, always set it manually")
|
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 |
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"
|
|
|
108 |
"to https://huggingface.co/pyannote/speaker-diarization-3.1 and agree to"
|
109 |
" their requirement.")
|
110 |
|
|
|
|
|
|
|
|
|
111 |
with gr.Accordion("Diarization options", open=False):
|
112 |
dd_diarization_device = gr.Dropdown(label="Device",
|
113 |
choices=self.whisper_inf.diarizer.get_available_device(),
|