transcript-api / app /stt /whisper.py
Hamzaaly234's picture
feat/setup
21b2f8c
raw
history blame contribute delete
177 Bytes
import whisper
# Load model only once (important for performance)
_model = whisper.load_model("tiny.en") # use tiny for HF free tier
def get_stt_service():
return _model