MCPcopy Create free account
hub / github.com/PaddlePaddle/PaddleOCR / _response_data

Method _response_data

paddleocr/_api_client/_async_http.py:183–188  ·  view source on GitHub ↗
(self, resp)

Source from the content-addressed store, hash-verified

181 raise_for_status(resp.status, msg)
182
183 async def _response_data(self, resp) -> Dict[str, Any]:
184 try:
185 payload = await resp.json()
186 except Exception as e:
187 raise ResponseFormatError(f"Response body is not valid JSON: {e}") from e
188 return unwrap_api_response(payload, resp.status)

Callers 4

submit_urlMethod · 0.95
submit_fileMethod · 0.95
get_job_statusMethod · 0.95
get_batch_statusMethod · 0.95

Calls 3

unwrap_api_responseFunction · 0.85
jsonMethod · 0.80
ResponseFormatErrorClass · 0.70

Tested by

no test coverage detected