UI: whisper config reorg

This commit is contained in:
qixinbo
2026-03-28 20:25:13 +08:00
parent c983829392
commit b0a8a69373
3 changed files with 103 additions and 58 deletions
+4
View File
@@ -41,6 +41,10 @@ print("Loading Whisper model (small)... This may take a moment.")
model = whisper.load_model("small")
print("Model loaded successfully.")
@app.get("/health")
async def health():
return {"status": "ok"}
@app.post("/transcribe")
async def transcribe_audio(file: UploadFile = File(...)):
# Save the uploaded file to a temporary file