Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
modelbit failure logging fix (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Sep 8, 2023
1 parent 148254e commit cefd422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wyvern/components/models/modelbit_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ async def inference(self, input: MODEL_INPUT, **kwargs) -> MODEL_OUTPUT:

for batch_idx, resp in enumerate(responses):
if resp.status != 200:
logger.warning(f"Modelbit inference failed: {resp.text}")
text = await resp.text()
logger.warning(f"Modelbit inference failed: {text}")
continue
resp_list: List[List[Union[float, str, List[float], None]]] = (
await resp.json()
Expand Down

0 comments on commit cefd422

Please sign in to comment.