mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-10-12 02:12:50 +00:00
fix ruff
This commit is contained in:
@@ -113,9 +113,9 @@ class DocumentToImageContent:
|
||||
:returns:
|
||||
Dictionary containing one key:
|
||||
- "image_contents": ImageContents created from the processed documents. These contain base64-encoded image
|
||||
data and metadata. The order corresponds to the order of the input documents. A document that is missing the
|
||||
required metadata keys, has an invalid file path, or has an unsupported MIME type gets None in its
|
||||
position and a logged warning with the reason.
|
||||
data and metadata. The order corresponds to the order of the input documents. A document that is
|
||||
missing the required metadata keys, has an invalid file path, or has an unsupported MIME type gets
|
||||
None in its position and a logged warning with the reason.
|
||||
"""
|
||||
if not documents:
|
||||
return {"image_contents": []}
|
||||
|
||||
Reference in New Issue
Block a user