pvanand commited on
Commit
59ec87d
1 Parent(s): 91a4c08

Update speech_api.py

Browse files
Files changed (1) hide show
  1. 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))