LAP-DEV commited on
Commit
6ddb82d
·
verified ·
1 Parent(s): 7a531f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -102,13 +102,16 @@ class App:
102
  cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True, visible=True)
103
  dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", visible=False, info="Output preview format")
104
 
105
- with gr.Row():
106
- cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization (HuggingFace token required)",interactive=True)
107
- tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"],
108
- info="This is only needed the first time you download the model. If you already have"
109
- " models, you don't need to enter. To download the model, you must manually go "
110
- "to https://huggingface.co/pyannote/speaker-diarization-3.1 and agree to"
111
- " their requirement.")
 
 
 
112
 
113
  with gr.Accordion("Advanced options", open=False, visible=True):
114
  with gr.Accordion("Advanced diarization options", open=False, visible=True):
 
102
  cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True, visible=True)
103
  dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", visible=False, info="Output preview format")
104
 
105
+ with gr.Column():
106
+ with gr.Group():
107
+ cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization (Token required)",interactive=True)
108
+ tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"])
109
+ with gr.Accordion("For more details click here...", open=False):
110
+ gr.Markdown("""
111
+ An access token can be created [here](https://hf.co/settings/tokens)
112
+
113
+ If not done yet for your account, you need to [accept diarization terms & conditions](https://huggingface.co/pyannote/speaker-diarization-3.1)
114
+ """)
115
 
116
  with gr.Accordion("Advanced options", open=False, visible=True):
117
  with gr.Accordion("Advanced diarization options", open=False, visible=True):