Update app.py
Browse files
app.py
CHANGED
@@ -292,10 +292,6 @@ class App:
|
|
292 |
with gr.Column():
|
293 |
gr.Markdown(device_info, label="Hardware info & installed packages")
|
294 |
|
295 |
-
with gr.TabItem("Advanced settings"): # tab3
|
296 |
-
cb_diarize_show = gr.Checkbox(value=False, label="Enable speaker diarization options",interactive=True)
|
297 |
-
cb_diarize_show.change(fn=self.on_diarize_show,inputs=[cb_diarize_show])
|
298 |
-
|
299 |
# Launch the app with optional gradio settings
|
300 |
args = self.args
|
301 |
|
@@ -327,11 +323,6 @@ class App:
|
|
327 |
else:
|
328 |
return gr.Checkbox(visible=True, value=False, label="Translate to English", interactive=True)
|
329 |
|
330 |
-
@staticmethod
|
331 |
-
def on_diarize_show(show_options: bool):
|
332 |
-
gr.Accordion("Diarization options", open=False, visible=show_options)
|
333 |
-
|
334 |
-
|
335 |
# Create the parser for command-line arguments
|
336 |
parser = argparse.ArgumentParser()
|
337 |
parser.add_argument('--whisper_type', type=str, default="faster-whisper",
|
|
|
292 |
with gr.Column():
|
293 |
gr.Markdown(device_info, label="Hardware info & installed packages")
|
294 |
|
|
|
|
|
|
|
|
|
295 |
# Launch the app with optional gradio settings
|
296 |
args = self.args
|
297 |
|
|
|
323 |
else:
|
324 |
return gr.Checkbox(visible=True, value=False, label="Translate to English", interactive=True)
|
325 |
|
|
|
|
|
|
|
|
|
|
|
326 |
# Create the parser for command-line arguments
|
327 |
parser = argparse.ArgumentParser()
|
328 |
parser.add_argument('--whisper_type', type=str, default="faster-whisper",
|