Update app.py
Browse files
app.py
CHANGED
@@ -97,16 +97,12 @@ class App:
|
|
97 |
nllb_params = translation_params["nllb"]
|
98 |
|
99 |
with gr.Row():
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", info="Output preview format", interactive=True, visible=False)
|
107 |
-
with gr.Column(scale=1):
|
108 |
-
with gr.Row():
|
109 |
-
cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
|
110 |
|
111 |
with gr.Row():
|
112 |
with gr.Column(scale=5):
|
|
|
97 |
nllb_params = translation_params["nllb"]
|
98 |
|
99 |
with gr.Row():
|
100 |
+
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", interactive=True)
|
101 |
+
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", interactive=True)
|
102 |
+
cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True, visible=False)
|
103 |
+
#dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
|
104 |
+
dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", info="Output preview format", interactive=True, visible=False)
|
105 |
+
cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
|
|
|
|
|
|
|
|
|
106 |
|
107 |
with gr.Row():
|
108 |
with gr.Column(scale=5):
|