py
This commit is contained in:
@@ -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(...)):
|
||||
|
||||
Reference in New Issue
Block a user