Pant0x commited on
Commit
166c165
·
1 Parent(s): ab4a075

debug(deploy): sync debug changes to hf_backend/app

Browse files
Files changed (1) hide show
  1. app/services/plate_recognition.py +3 -1
app/services/plate_recognition.py CHANGED
@@ -165,7 +165,9 @@ def run_pipeline_remote(*, image_bytes: bytes, filename: Optional[str] = None, c
165
  raise
166
  except Exception as exc:
167
  LOGGER.exception("Remote model service failed")
168
- raise HTTPException(status_code=502, detail=f"Remote model service failed: {exc}") from exc
 
 
169
  finally:
170
  if os.path.exists(tmp_path):
171
  try:
 
165
  raise
166
  except Exception as exc:
167
  LOGGER.exception("Remote model service failed")
168
+ import traceback
169
+ tb = traceback.format_exc()
170
+ raise HTTPException(status_code=502, detail=f"Remote model service failed: {exc}\nTraceback:\n{tb}") from exc
171
  finally:
172
  if os.path.exists(tmp_path):
173
  try: