Skip to content

Commit

Permalink
fix multi_modal image (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceceliachenen authored Aug 15, 2024
1 parent 684b896 commit 24fff62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pai_rag/integrations/readers/pai_image_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def load_data(
extra_info["file_path"] = file_path
extra_info["file_name"] = os.path.basename(file_path)
extra_info["image_url"] = image_url
image_doc = ImageDocument(image=image_url, extra_info=extra_info)
image_doc = ImageDocument(image_url=image_url, extra_info=extra_info)
docs = [image_doc]
# docs = self.load_image_urls([image_url], extra_info=extra_info)
return docs

0 comments on commit 24fff62

Please sign in to comment.