Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions api_inference_community/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,6 @@ async def pipeline_route(request: Request) -> Response:

try:
inputs, params = normalize_payload(payload, task, sampling_rate=sampling_rate)
except EnvironmentError as e:
# Since we catch the environment edge cases earlier above, this should not happen here anymore
# harmless to keep it, just in case
logger.error("Error while parsing input %s", e)
return JSONResponse({"error": str(e)}, status_code=500)
except ValidationError as e:
errors = []
for error in e.errors():
Expand Down
Loading