refac: lazily load faster_whisper to reduce start up memory usage

This commit is contained in:
Jun Siang Cheah
2024-07-01 08:13:02 +08:00
parent f77073410e
commit 17c684369e
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -12,7 +12,6 @@ from fastapi import (
Form,
)
from fastapi.middleware.cors import CORSMiddleware
from faster_whisper import WhisperModel
from constants import ERROR_MESSAGES
from utils.utils import (