Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -28,4 +28,4 @@ def predict(payload: PredictRequest) -> PredictResponse:
|
|
| 28 |
except RuntimeError as exc:
|
| 29 |
raise HTTPException(status_code=503, detail=str(exc)) from exc
|
| 30 |
except Exception as exc: # pragma: no cover
|
| 31 |
-
raise HTTPException(status_code=500, detail="prediction_failed") from exc
|
|
|
|
| 28 |
except RuntimeError as exc:
|
| 29 |
raise HTTPException(status_code=503, detail=str(exc)) from exc
|
| 30 |
except Exception as exc: # pragma: no cover
|
| 31 |
+
raise HTTPException(status_code=500, detail=f"prediction_failed: {exc}") from exc
|