Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -455,7 +455,7 @@ def create_ui(app_config: ApplicationConfig):
|
|
455 |
implementation_name = "Whisper"
|
456 |
is_whisper = True
|
457 |
elif app_config.whisper_implementation in ["faster-whisper", "faster_whisper"]:
|
458 |
-
implementation_name = "
|
459 |
else:
|
460 |
# Try to convert from camel-case to title-case
|
461 |
implementation_name = app_config.whisper_implementation.title().replace("_", " ").replace("-", " ")
|
@@ -466,14 +466,6 @@ 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 |
-
# Recommend faster-whisper
|
470 |
-
if is_whisper:
|
471 |
-
ui_description += "\n\n\n\nFor faster inference on GPU, try [faster-whisper](https://huggingface.co/spaces/aadnk/faster-whisper-webui)."
|
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 [documentation here](https://gitlab.com/aadnk/whisper-webui/-/blob/main/docs/options.md)."
|
477 |
|
478 |
whisper_models = app_config.get_model_names()
|
479 |
|
|
|
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
|
461 |
implementation_name = app_config.whisper_implementation.title().replace("_", " ").replace("-", " ")
|
|
|
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 |
|