diff --git a/examples/onnx-inference/README.md b/examples/onnx-inference/README.md index 835ce52ca..9f3ed8c46 100644 --- a/examples/onnx-inference/README.md +++ b/examples/onnx-inference/README.md @@ -21,7 +21,7 @@ Success! Predicted: 5 Actual: 5 See the image online, click the link below: -https://datasets-server.huggingface.co/assets/mnist/--/mnist/test/15/image/image.jpg +https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test?row=15 ``` ## Feature Flags diff --git a/examples/onnx-inference/src/bin/mnist_inference.rs b/examples/onnx-inference/src/bin/mnist_inference.rs index 4cdcea252..89dc6be27 100644 --- a/examples/onnx-inference/src/bin/mnist_inference.rs +++ b/examples/onnx-inference/src/bin/mnist_inference.rs @@ -57,10 +57,6 @@ fn main() { println!("Success!"); println!("Predicted: {}", arg_max); println!("Actual: {}", item.label); - - // Print the image URL if the image index is less than 100 (the online dataset only has 100 images) - if image_index < 100 { - println!("See the image online, click the link below:"); - println!("https://datasets-server.huggingface.co/assets/mnist/--/mnist/test/{image_index}/image/image.jpg"); - } + println!("See the image online, click the link below:"); + println!("https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test?row={image_index}"); } diff --git a/examples/pytorch-import/README.md b/examples/pytorch-import/README.md index 374f3d72e..b348dcb20 100644 --- a/examples/pytorch-import/README.md +++ b/examples/pytorch-import/README.md @@ -25,5 +25,5 @@ Success! Predicted: 5 Actual: 5 See the image online, click the link below: -https://datasets-server.huggingface.co/assets/mnist/--/mnist/test/15/image/image.jpg +https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test?row=15 ``` diff --git a/examples/pytorch-import/src/main.rs b/examples/pytorch-import/src/main.rs index e4a1d3d75..5f02d696a 100644 --- a/examples/pytorch-import/src/main.rs +++ b/examples/pytorch-import/src/main.rs @@ -66,10 +66,6 @@ fn main() { println!("Success!"); println!("Predicted: {}", arg_max); println!("Actual: {}", item.label); - - // Print the image URL if the image index is less than 100 (the online dataset only has 100 images) - if image_index < 100 { - println!("See the image online, click the link below:"); - println!("https://datasets-server.huggingface.co/assets/mnist/--/mnist/test/{image_index}/image/image.jpg"); - } + println!("See the image online, click the link below:"); + println!("https://huggingface.co/datasets/ylecun/mnist/viewer/mnist/test?row={image_index}"); }