MarkoVidrih commited on
Commit
70f9336
·
verified ·
1 Parent(s): 3aff2ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -454,7 +454,7 @@ def create_ui(app_config: ApplicationConfig):
454
  if app_config.whisper_implementation == "whisper":
455
  implementation_name = "Whisper"
456
  is_whisper = True
457
- elif app_config.whisper_implementation in ["faster-whisper", "faster_whisper"]:
458
  implementation_name = "This"
459
  else:
460
  # Try to convert from camel-case to title-case
@@ -466,7 +466,15 @@ def create_ui(app_config: ApplicationConfig):
466
 
467
  ui_description += "\n\n\n\nFor longer audio files (>10 minutes) not in English, it is recommended that you select Silero VAD (Voice Activity Detector) in the VAD option."
468
 
 
 
 
469
 
 
 
 
 
 
470
  whisper_models = app_config.get_model_names()
471
 
472
  common_inputs = lambda : [
 
454
  if app_config.whisper_implementation == "whisper":
455
  implementation_name = "Whisper"
456
  is_whisper = True
457
+ elif app_config.whisper_implementation in ["this",]:
458
  implementation_name = "This"
459
  else:
460
  # Try to convert from camel-case to title-case
 
466
 
467
  ui_description += "\n\n\n\nFor longer audio files (>10 minutes) not in English, it is recommended that you select Silero VAD (Voice Activity Detector) in the VAD option."
468
 
469
+ # Recommend faster-whisper
470
+ if is_whisper:
471
+ ui_description += "\n\n\n\nFor faster inference on GPU, fill the form to contact us."
472
 
473
+ if app_config.input_audio_max_duration > 0:
474
+ ui_description += "\n\n" + "Max audio file length: " + str(app_config.input_audio_max_duration) + " s"
475
+
476
+ ui_article = "Read the [creatus.ai](https://creatus.ai/)."
477
+
478
  whisper_models = app_config.get_model_names()
479
 
480
  common_inputs = lambda : [