From 365b566e9f26d7db2aef399c7e987f3b9358b6d5 Mon Sep 17 00:00:00 2001 From: Avishkar Gupta Date: Mon, 16 Dec 2024 15:14:36 +0530 Subject: [PATCH] Fix image link in receipt-digitization example 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. --- docs/cookbook/receipt-digitization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cookbook/receipt-digitization.md b/docs/cookbook/receipt-digitization.md index 67830fa81..0fa256db7 100644 --- a/docs/cookbook/receipt-digitization.md +++ b/docs/cookbook/receipt-digitization.md @@ -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)