Skip to content

Commit

Permalink
docs: add linked asset to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
wochinge committed Mar 5, 2024
1 parent b60c831 commit 732afdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ class VertexAIImageCaptioner:
captioner = VertexAIImageCaptioner(project_id=project_id)
image = ByteStream(data=requests.get("https://raw.githubusercontent.com/silvanocerza/robots/main/robot1.jpg").content)
image = ByteStream(
data=requests.get(
"https://raw.githubusercontent.com/deepset-ai/haystack-core-integrations/main/integrations/google_vertex/example_assets/robot1.jpg"
).content
)
result = captioner.run(image=image)
for caption in result["captions"]:
Expand Down

0 comments on commit 732afdb

Please sign in to comment.