Update app.py
Browse files64 unmodified lines6566676869707128 unmodified lines10010110210310410510664 unmodified linesdef __init__(self, args):self.args = args#self.app = gr.Blocks(css=CSS, theme=self.args.theme, delete_cache=(60, 3600))self.app = gr.Blocks(css=CSS, theme=gr.themes.Ocean(), delete_cache=(60, 3600))self.whisper_inf = WhisperFactory.create_whisper_inference(whisper_type=self.args.whisper_type,whisper_model_dir=self.args.whisper_model_dir,28 unmodified lineswith gr.Row():cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)cb_diarize = gr.Checkbox(label="Speaker diarization", value=diarization_params["is_diarize"])cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)with gr.Accordion("Diarization options", open=False):64 unmodified lines6566676869707128 unmodified lines10010110210310410510664 unmodified linesdef __init__(self, args):self.args = args#self.app = gr.Blocks(css=CSS, theme=self.args.theme, delete_cache=(60, 3600))self.app = gr.Blocks(css=CSS, theme=gr.themes.Origin(), delete_cache=(60, 3600))self.whisper_inf = WhisperFactory.create_whisper_inference(whisper_type=self.args.whisper_type,whisper_model_dir=self.args.whisper_model_dir,28 unmodified lineswith gr.Row():cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"]label="Speaker diarization",interactive=True)cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)with gr.Accordion("Diarization options", open=False):
app.py+2-2