model
parent
2ab03774e0
commit
dc5c455f0e
|
@ -6,7 +6,7 @@ from whispercpp import Whisper
|
|||
app = FastAPI()
|
||||
|
||||
# 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")
|
||||
async def transcribe_audio(audio: UploadFile = File(...)):
|
||||
|
|
Loading…
Reference in New Issue