Spaces:
Running
Running
Update speech_api.py
Browse files- speech_api.py +1 -1
speech_api.py
CHANGED
@@ -66,6 +66,6 @@ async def speech_to_text(file: UploadFile = File(...), source_language: str = "e
|
|
66 |
|
67 |
return {"text": transcribed_text}
|
68 |
except KeyError:
|
69 |
-
raise HTTPException(status_code=500, detail="Unexpected response structure from ASR service")
|
70 |
except Exception as e:
|
71 |
raise HTTPException(status_code=500, detail=str(e))
|
|
|
66 |
|
67 |
return {"text": transcribed_text}
|
68 |
except KeyError:
|
69 |
+
raise HTTPException(status_code=500, detail=f"Unexpected response structure from ASR service out:{asr_result}")
|
70 |
except Exception as e:
|
71 |
raise HTTPException(status_code=500, detail=str(e))
|