LAP-DEV commited on
Commit
8048848
·
verified ·
1 Parent(s): 0419a0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=cb_diarize_show)
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