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