LAP-DEV commited on
Commit
4b2e4ff
·
verified ·
1 Parent(s): 940dfc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,7 +65,7 @@ class App:
65
  def __init__(self, args):
66
  self.args = args
67
  #self.app = gr.Blocks(css=CSS, theme=self.args.theme, delete_cache=(60, 3600))
68
- self.app = gr.Blocks(css=CSS, theme=gr.themes.Ocean(), delete_cache=(60, 3600))
69
  self.whisper_inf = WhisperFactory.create_whisper_inference(
70
  whisper_type=self.args.whisper_type,
71
  whisper_model_dir=self.args.whisper_model_dir,
@@ -100,7 +100,7 @@ class App:
100
 
101
  with gr.Row():
102
  cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
103
- cb_diarize = gr.Checkbox(label="Speaker diarization", value=diarization_params["is_diarize"])
104
  cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)
105
 
106
  with gr.Accordion("Diarization options", open=False):
 
65
  def __init__(self, args):
66
  self.args = args
67
  #self.app = gr.Blocks(css=CSS, theme=self.args.theme, delete_cache=(60, 3600))
68
+ self.app = gr.Blocks(css=CSS, theme=gr.themes.Origin(), delete_cache=(60, 3600))
69
  self.whisper_inf = WhisperFactory.create_whisper_inference(
70
  whisper_type=self.args.whisper_type,
71
  whisper_model_dir=self.args.whisper_model_dir,
 
100
 
101
  with gr.Row():
102
  cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
103
+ cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"]label="Speaker diarization",interactive=True)
104
  cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)
105
 
106
  with gr.Accordion("Diarization options", open=False):