[docs] Fix image link (#36869)

* fix image link

* fix

* update

* fix
This commit is contained in:
Steven Liu
2025-03-25 11:34:21 -07:00
committed by GitHub
parent d68a91aebf
commit a844297088
4 changed files with 62 additions and 28 deletions

View File

@@ -29,8 +29,8 @@ import requests
processor = AutoProcessor.from_pretrained("google/paligemma-3b-pt-224")
prompt = "answer en Where is the cow standing?"
url = "https://huggingface.co/gv-hf/PaliGemma-test-224px-hf/resolve/main/cow_beach_1.png"
prompt = "answer en Where is the cat standing?"
url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg"
image = Image.open(requests.get(url, stream=True).raw)
inputs = processor(text=prompt, images=image, return_tensors="pt")