mirror of
https://github.com/datalab-to/chandra.git
synced 2025-12-01 17:43:10 +00:00
Track errors properly
This commit is contained in:
@@ -48,6 +48,7 @@ class InferenceManager:
|
||||
page_box=[0, 0, input_item.image.width, input_item.image.height],
|
||||
token_count=result.token_count,
|
||||
images=extract_images(result.raw, chunks, input_item.image),
|
||||
error=result.error,
|
||||
)
|
||||
)
|
||||
return output
|
||||
|
||||
@@ -27,3 +27,4 @@ class BatchOutputItem:
|
||||
page_box: List[int]
|
||||
token_count: int
|
||||
images: dict
|
||||
error: bool
|
||||
|
||||
Reference in New Issue
Block a user