Skip to content

Loading Moonshine js locally #94

@ArEnSc

Description

@ArEnSc

Hey can you allow a way to load the wasm requirements?
Also to load the model locally without the cdn
Effectively I am trying to get a Electron app put together.
import { env } from '@huggingface/transformers'
very similar to this
env.backends.onnx.wasm.wasmPaths = {
'ort-wasm-simd-threaded.mjs': ${base}ort-wasm-simd-threaded.mjs,
'ort-wasm-simd-threaded.wasm': ${base}ort-wasm-simd-threaded.wasm,
'ort-wasm-simd-threaded.jsep.mjs': ${base}ort-wasm-simd-threaded.jsep.mjs,
'ort-wasm-simd-threaded.jsep.wasm': ${base}ort-wasm-simd-threaded.jsep.wasm
}

@evmaki

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions