LAP-DEV commited on
Commit
b6593be
·
verified ·
1 Parent(s): 9f32e30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -93,18 +93,18 @@ class App:
93
  uvr_params = self.default_params["bgm_separation"]
94
 
95
  with gr.Row():
96
- with gr.Column(scale=3):
97
- 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")
98
- with gr.Column(scale=3):
99
- 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")
100
- #dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
101
- dd_file_format = gr.Dropdown(choices=["SRT", "txt"], value="txt", label="Output format", visible=False)
102
- with gr.Column(scale=1):
103
- cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization",interactive=True)
104
- with gr.Column(scale=1):
105
- cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)
106
- with gr.Column(scale=1):
107
- cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
108
 
109
  with gr.Accordion("Diarization options", open=False):
110
  tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"],
 
93
  uvr_params = self.default_params["bgm_separation"]
94
 
95
  with gr.Row():
96
+ with gr.Column(scale=2):
97
+ 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")
98
+ with gr.Column(scale=2):
99
+ 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")
100
+ with gr.Column(scale=1):
101
+ #dd_file_format = gr.Dropdown(choices=["SRT", "WebVTT", "txt"], value="SRT", label="File Format")
102
+ dd_file_format = gr.Dropdown(choices=["SRT", "txt"], value="txt", label="Output format", visible=False)
103
+
104
+ with gr.Row():
105
+ cb_diarize = gr.Checkbox(value=diarization_params["is_diarize"], label="Speaker diarization",interactive=True)
106
+ cb_translate = gr.Checkbox(value=whisper_params["is_translate"], label="Translate to English",interactive=True)
107
+ cb_timestamp = gr.Checkbox(value=whisper_params["add_timestamp"], label="Add timestamp to output file",interactive=True)
108
 
109
  with gr.Accordion("Diarization options", open=False):
110
  tb_hf_token = gr.Text(label="HuggingFace Token", value=diarization_params["hf_token"],