summaryrefslogtreecommitdiff
path: root/candle-wasm-examples/moondream
diff options
context:
space:
mode:
Diffstat (limited to 'candle-wasm-examples/moondream')
-rw-r--r--candle-wasm-examples/moondream/src/bin/m.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-wasm-examples/moondream/src/bin/m.rs b/candle-wasm-examples/moondream/src/bin/m.rs
index 2af6c0d2..27cda1e7 100644
--- a/candle-wasm-examples/moondream/src/bin/m.rs
+++ b/candle-wasm-examples/moondream/src/bin/m.rs
@@ -195,7 +195,7 @@ impl Model {
}
impl Model {
fn load_image(&self, image: Vec<u8>) -> Result<Tensor, JsError> {
- let img = image::io::Reader::new(std::io::Cursor::new(image))
+ let img = image::ImageReader::new(std::io::Cursor::new(image))
.with_guessed_format()?
.decode()
.map_err(|e| JsError::new(&e.to_string()))?