Spaces:
Sleeping
Sleeping
debug(deploy): sync debug changes to hf_backend/app
Browse files
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 |
-
|
|
|
|
|
|
|
| 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:
|