LAP-DEV commited on
Commit
aee6674
·
verified ·
1 Parent(s): 27e849b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -98,10 +98,10 @@ class App:
98
  #dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
99
  dd_file_format = gr.Dropdown(choices=["SRT", "txt"], value="txt", label="Output format", visible=False)
100
 
101
- with gr.Row():
102
- cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
103
  cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization",interactive=True)
104
- cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)
 
105
 
106
  with gr.Accordion("Diarization options", open=False):
107
  tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"],
 
98
  #dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
99
  dd_file_format = gr.Dropdown(choices=["SRT", "txt"], value="txt", label="Output format", visible=False)
100
 
101
+ #with gr.Row():
 
102
  cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization",interactive=True)
103
+ cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)
104
+ cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
105
 
106
  with gr.Accordion("Diarization options", open=False):
107
  tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"],