master
Kar 2025-06-15 00:32:38 +05:30
parent 2ab03774e0
commit dc5c455f0e
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ from whispercpp import Whisper
app = FastAPI() app = FastAPI()
# Load the local model without Hugging Face token # Load the local model without Hugging Face token
whisper = Whisper.from_pretrained("./app/model/ggml-base.en.bin") whisper = Whisper.from_pretrained("./app/model/ggml-tiny.en.bin")
@app.post("/transcribe") @app.post("/transcribe")
async def transcribe_audio(audio: UploadFile = File(...)): async def transcribe_audio(audio: UploadFile = File(...)):