Update app.py
Browse files
app.py
CHANGED
@@ -103,13 +103,24 @@ class App:
|
|
103 |
#dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
|
104 |
dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", visible=False, info="Output preview format")
|
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 |
-
""")
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
with gr.Accordion("Advanced options", open=False, visible=False):
|
114 |
with gr.Accordion("Advanced diarization options", open=False, visible=True):
|
115 |
dd_diarization_device = gr.Dropdown(label="Device",
|
|
|
103 |
#dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
|
104 |
dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", visible=False, info="Output preview format")
|
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 |
+
# """)
|
112 |
|
113 |
+
with gr.Accordion("Speaker diarization", open=False, visible=True):
|
114 |
+
with gr.Row():
|
115 |
+
with gr.Column(scale=2):
|
116 |
+
cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Use diarization",interactive=True)
|
117 |
+
with gr.Column(scale=2):
|
118 |
+
tb_hf_token = gr.Text(label="Token", value=diarization_params["hf_token"],info="Required to use diarization")
|
119 |
+
with gr.Row():
|
120 |
+
gr.Markdown("""
|
121 |
+
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).
|
122 |
+
""")
|
123 |
+
|
124 |
with gr.Accordion("Advanced options", open=False, visible=False):
|
125 |
with gr.Accordion("Advanced diarization options", open=False, visible=True):
|
126 |
dd_diarization_device = gr.Dropdown(label="Device",
|