Update app.py
Browse files
app.py
CHANGED
@@ -294,7 +294,7 @@ class App:
|
|
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)
|
298 |
|
299 |
# Launch the app with optional gradio settings
|
300 |
args = self.args
|
@@ -328,8 +328,8 @@ class App:
|
|
328 |
return gr.Checkbox(visible=True, value=False, label="Translate to English", interactive=True)
|
329 |
|
330 |
@staticmethod
|
331 |
-
def on_diarize_show():
|
332 |
-
gr.Accordion("Diarization options", open=False, visible=
|
333 |
|
334 |
|
335 |
# Create the parser for command-line arguments
|
|
|
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
|
|
|
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
|