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