copy downloaded model

This commit is contained in:
Kar
2025-06-14 23:36:35 +05:30
parent 5bc2e260ff
commit 2ab03774e0
2 changed files with 5 additions and 3 deletions

View File

@@ -5,8 +5,8 @@ from whispercpp import Whisper
app = FastAPI()
# Load the model (auto-download and cache it)
whisper = Whisper.from_pretrained("base.en") # Options: tiny, base, small, etc.
# Load the local model without Hugging Face token
whisper = Whisper.from_pretrained("./app/model/ggml-base.en.bin")
@app.post("/transcribe")
async def transcribe_audio(audio: UploadFile = File(...)):