Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,8 @@ 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 |
-
|
69 |
-
self.app = gr.Blocks(css=CSS,theme=gr.themes.Ocean(), title="Whisper - Automatic speech recognition", delete_cache=(60, 3600))
|
70 |
self.whisper_inf = WhisperFactory.create_whisper_inference(
|
71 |
whisper_type=self.args.whisper_type,
|
72 |
whisper_model_dir=self.args.whisper_model_dir,
|
@@ -105,7 +105,8 @@ class App:
|
|
105 |
|
106 |
with gr.Accordion("Speaker diarization", open=False, visible=True):
|
107 |
cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Use diarization",interactive=True)
|
108 |
-
tb_hf_token = gr.Text(label="Token", value=diarization_params["hf_token"],info="Required to use diarization")
|
|
|
109 |
gr.Markdown("""
|
110 |
An access token can be created [here](https://hf.co/settings/tokens). If not done yet for your account, you need to accept the terms & conditions of [diarization](https://huggingface.co/pyannote/speaker-diarization-3.1) and [segmentation](https://huggingface.co/pyannote/segmentation-3.0).
|
111 |
""")
|
|
|
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.app = gr.Blocks(css=CSS,theme=gr.themes.Ocean(), title="Whisper - Automatic speech recognition", delete_cache=(60, 3600))
|
70 |
self.whisper_inf = WhisperFactory.create_whisper_inference(
|
71 |
whisper_type=self.args.whisper_type,
|
72 |
whisper_model_dir=self.args.whisper_model_dir,
|
|
|
105 |
|
106 |
with gr.Accordion("Speaker diarization", open=False, visible=True):
|
107 |
cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Use diarization",interactive=True)
|
108 |
+
#tb_hf_token = gr.Text(label="Token", value=diarization_params["hf_token"],info="Required to use diarization")
|
109 |
+
tb_hf_token = gr.Text(label="Token", value=diarization_params["hf_token"])
|
110 |
gr.Markdown("""
|
111 |
An access token can be created [here](https://hf.co/settings/tokens). If not done yet for your account, you need to accept the terms & conditions of [diarization](https://huggingface.co/pyannote/speaker-diarization-3.1) and [segmentation](https://huggingface.co/pyannote/segmentation-3.0).
|
112 |
""")
|