LAP-DEV commited on
Commit
d70577f
·
verified ·
1 Parent(s): d1930e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -96,14 +96,12 @@ class App:
96
  dd_model = gr.Dropdown(choices=self.whisper_inf.available_models, value=whisper_params["model_size"],label="Model", info="Larger models will increase the quality of the transcription, but reduce performance")
97
  dd_lang = gr.Dropdown(choices=["Automatic Detection"] + self.whisper_inf.available_langs,value=whisper_params["lang"], label="Language", info="If the language is known upfront, always set it manually")
98
  #dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
 
 
99
  dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", visible=False, info="Output preview format")
100
 
101
- with gr.Row():
102
- cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization (Token required)",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, visible=False)
105
-
106
  with gr.Accordion("Diarization options", open=False):
 
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 "
 
96
  dd_model = gr.Dropdown(choices=self.whisper_inf.available_models, value=whisper_params["model_size"],label="Model", info="Larger models will increase the quality of the transcription, but reduce performance")
97
  dd_lang = gr.Dropdown(choices=["Automatic Detection"] + self.whisper_inf.available_langs,value=whisper_params["lang"], label="Language", info="If the language is known upfront, always set it manually")
98
  #dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
99
+ cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate",interactive=True, info="Translate output to English")
100
+ cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True, visible=False)
101
  dd_file_format = gr.Dropdown(choices=["TXT","SRT"], value="TXT", label="Output format", visible=False, info="Output preview format")
102
 
 
 
 
 
 
103
  with gr.Accordion("Diarization options", open=False):
104
+ cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization (Token required)",interactive=True)
105
  tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"],
106
  info="This is only needed the first time you download the model. If you already have"
107
  " models, you don't need to enter. To download the model, you must manually go "