Update app.py
Browse files
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(), title="Automatic speech recognition", 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,
|
@@ -121,7 +121,8 @@ class App:
|
|
121 |
value=self.whisper_inf.diarizer.get_device(),
|
122 |
interactive=True, visible=False)
|
123 |
|
124 |
-
with gr.Accordion("Preprocessing options
|
|
|
125 |
with gr.Accordion("Voice Detection Filter", open=False, visible=True):
|
126 |
cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=vad_params["vad_filter"],
|
127 |
info="Enable to transcribe only detected voice parts",
|
|
|
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(), title="Whisper - Automatic speech recognition", 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,
|
|
|
121 |
value=self.whisper_inf.diarizer.get_device(),
|
122 |
interactive=True, visible=False)
|
123 |
|
124 |
+
with gr.Accordion("Preprocessing options", open=False, visible=True):
|
125 |
+
gr.Markdown(value="⚠ Experimental features (Use with Caution)")
|
126 |
with gr.Accordion("Voice Detection Filter", open=False, visible=True):
|
127 |
cb_vad_filter = gr.Checkbox(label="Enable Silero VAD Filter", value=vad_params["vad_filter"],
|
128 |
info="Enable to transcribe only detected voice parts",
|