master
parent
788b2ea705
commit
16aa10ad82
|
@ -5,8 +5,8 @@ from whispercpp import Whisper
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
model_path = "./app/model/ggml-base.en.bin"
|
# Load model using the updated API
|
||||||
whisper = Whisper(model_path)
|
whisper = Whisper.from_pretrained("./app/model/ggml-base.en.bin")
|
||||||
|
|
||||||
@app.post("/transcribe")
|
@app.post("/transcribe")
|
||||||
async def transcribe_audio(audio: UploadFile = File(...)):
|
async def transcribe_audio(audio: UploadFile = File(...)):
|
||||||
|
|
Loading…
Reference in New Issue