Skip to content

Commit

Permalink
Fix image link in receipt-digitization example
Browse files Browse the repository at this point in the history
The current link points to a HTML instead of a PNG, so after it's downloaded via requests.get, PIL isn't able to recognize the format and rightly so.
  • Loading branch information
rootAvish authored and rlouf committed Dec 16, 2024
1 parent 5c41fb3 commit 365b566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cookbook/receipt-digitization.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Here's what the image looks like:

```python
# Path to the image
image_path = "https://dottxt-ai.github.io/outlines/main/cookbook/images/trader-joes-receipt.png"
image_path = "https://raw.githubusercontent.com/dottxt-ai/outlines/refs/heads/main/docs/cookbook/images/trader-joes-receipt.jpg"

# Download the image
response = requests.get(image_path)
Expand Down

0 comments on commit 365b566

Please sign in to comment.