s-tier-plots commited on
Commit
01cf620
1 Parent(s): fb36077

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -585,12 +585,11 @@ def create_ui(app_config: ApplicationConfig):
585
  # Try to convert from camel-case to title-case
586
  implementation_name = app_config.whisper_implementation.title().replace("_", " ").replace("-", " ")
587
 
588
- ui_title = "whisper4jav (ui)"
589
  ui_description = implementation_name + " is forked copy of whisper webgui with a supression list of common, unnessary transcriptions"
590
- ui_description += "\n\n\n\nFor longer audio files (>10 minutes) it is recommended that you select Silero VAD (Voice Activity Detector) in the VAD option."
591
 
592
  if app_config.input_audio_max_duration > 0:
593
- ui_description += "\n\n" + "Max audio file length: " + str(app_config.input_audio_max_duration) + " s"
594
 
595
  whisper_models = app_config.get_model_names()
596
 
@@ -605,6 +604,7 @@ def create_ui(app_config: ApplicationConfig):
605
  ]
606
 
607
  common_vad_inputs = lambda : [
 
608
  gr.Dropdown(choices=["none", "silero-vad", "silero-vad-skip-gaps", "silero-vad-expand-into-gaps", "periodic-vad"], value=app_config.default_vad, label="VAD"),
609
  gr.Number(label="VAD - Merge Window (s)", precision=0, value=app_config.vad_merge_window),
610
  gr.Number(label="VAD - Max Merge Size (s)", precision=0, value=app_config.vad_max_merge_size),
 
585
  # Try to convert from camel-case to title-case
586
  implementation_name = app_config.whisper_implementation.title().replace("_", " ").replace("-", " ")
587
 
588
+ ui_title = "whisper4jav"
589
  ui_description = implementation_name + " is forked copy of whisper webgui with a supression list of common, unnessary transcriptions"
 
590
 
591
  if app_config.input_audio_max_duration > 0:
592
+ ui_description += "[Max audio file length: " + str(app_config.input_audio_max_duration) + " s]"
593
 
594
  whisper_models = app_config.get_model_names()
595
 
 
604
  ]
605
 
606
  common_vad_inputs = lambda : [
607
+ gr.Markdown("For longer audio files (>10 minutes) it is recommended that you select Silero VAD (Voice Activity Detector) in the VAD option."),
608
  gr.Dropdown(choices=["none", "silero-vad", "silero-vad-skip-gaps", "silero-vad-expand-into-gaps", "periodic-vad"], value=app_config.default_vad, label="VAD"),
609
  gr.Number(label="VAD - Merge Window (s)", precision=0, value=app_config.vad_merge_window),
610
  gr.Number(label="VAD - Max Merge Size (s)", precision=0, value=app_config.vad_max_merge_size),