Commit c6e0dc7e authored by Your Name's avatar Your Name

Fix: audio_models[0] instead of audio_model

parent 9016336b
...@@ -54,7 +54,7 @@ async def create_transcription( ...@@ -54,7 +54,7 @@ async def create_transcription(
raise HTTPException(status_code=500, detail=result["error"]) raise HTTPException(status_code=500, detail=result["error"])
return {"text": result.get("text", "")} return {"text": result.get("text", "")}
audio_model = multi_model_manager.audio_model audio_model = multi_model_manager.audio_models[0] if multi_model_manager.audio_models else None
if not audio_model: if not audio_model:
raise HTTPException( raise HTTPException(
status_code=400, status_code=400,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment