modelfoxdotdev / modelfox

ModelFox makes it easy to train, deploy, and monitor machine learning models.
Other
1.46k stars 63 forks source link

Deno library example crashes #83

Closed isabella closed 2 years ago

isabella commented 2 years ago

From root of tangram repo: cd languages/javascript Run scripts/build to build the .wasm

From root of tangram repo: cd languages/javascript/examples/deno/basic Then run the deno script: deno run -A main.ts

error: Uncaught (in promise) RuntimeError: unreachable
    at rust_panic (wasm://wasm/001cb7a6:1:358071)
    at std::panicking::rust_panic_with_hook::h2d9079427a2d996a (wasm://wasm/001cb7a6:1:350691)
    at std::panicking::begin_panic_handler::{{closure}}::h4e49f350d9f4de36 (wasm://wasm/001cb7a6:1:356796)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h91e711607d91be52 (wasm://wasm/001cb7a6:1:355908)
    at rust_begin_unwind (wasm://wasm/001cb7a6:1:355489)
    at core::panicking::panic_fmt::h1fea623755fffed7 (wasm://wasm/001cb7a6:1:355762)
    at core::panicking::panic::h38cac710b5048ca0 (wasm://wasm/001cb7a6:1:355060)
    at <tangram_core::predict::Model as core::convert::From<tangram_model::ModelReader>>::from::h40ca474486efdbfd (wasm://wasm/001cb7a6:1:58351)
    at loadModelFromArrayBuffer (wasm://wasm/001cb7a6:1:246259)
    at Module.loadModelFromArrayBuffer (https://js.tangram.dev/deno/tangram_wasm.js:183:20)
nitsky commented 2 years ago

The example has been updated and works correctly now.