LAP-DEV commited on
Commit
ab4df96
·
verified ·
1 Parent(s): 24c734e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,7 +96,7 @@ 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=True, 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)
@@ -277,7 +277,7 @@ class App:
277
  btn_reset.click(None,js="window.location.reload()")
278
  with gr.Row():
279
  with gr.Column(scale=3):
280
- tb_indicator = gr.Textbox(label="Output result", scale=1)
281
  with gr.Column(scale=1):
282
  tb_info = gr.Textbox(label="Output info", interactive=False, scale=1)
283
  files_subtitles = gr.Files(label="Output file", interactive=False, scale=1,file_count="multiple")
 
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)
 
277
  btn_reset.click(None,js="window.location.reload()")
278
  with gr.Row():
279
  with gr.Column(scale=3):
280
+ tb_indicator = gr.Textbox(label="Output preview", scale=1)
281
  with gr.Column(scale=1):
282
  tb_info = gr.Textbox(label="Output info", interactive=False, scale=1)
283
  files_subtitles = gr.Files(label="Output file", interactive=False, scale=1,file_count="multiple")