From 16aa10ad82d03e3db3faad309318d655811b626b Mon Sep 17 00:00:00 2001 From: Kar l5 Date: Sat, 14 Jun 2025 23:19:35 +0530 Subject: [PATCH] py --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 7394f1a..5010757 100644 --- a/app/main.py +++ b/app/main.py @@ -5,8 +5,8 @@ from whispercpp import Whisper app = FastAPI() -model_path = "./app/model/ggml-base.en.bin" -whisper = Whisper(model_path) +# Load model using the updated API +whisper = Whisper.from_pretrained("./app/model/ggml-base.en.bin") @app.post("/transcribe") async def transcribe_audio(audio: UploadFile = File(...)):