ykhrustalev commited on
Commit
2d56d4b
·
unverified ·
1 Parent(s): da13637

Restore HF loading

Browse files
Files changed (1) hide show
  1. main.js +3 -3
main.js CHANGED
@@ -6,13 +6,13 @@
6
 
7
  import { AudioModel, loadAudioFile, clearModelCache, getCacheInfo } from './audio-model.js';
8
 
9
- // Model path - local directory
10
- const MODEL_PATH = './LFM2.5-Audio-1.5B-ONNX';
11
 
12
  // Model configurations
13
  const MODELS = {
14
  'LFM2.5-Audio-1.5B-Q4': {
15
- path: MODEL_PATH,
16
  label: 'LFM2.5-Audio-1.5B Q4 (~1.6 GB)',
17
  quantization: {
18
  decoder: 'q4',
 
6
 
7
  import { AudioModel, loadAudioFile, clearModelCache, getCacheInfo } from './audio-model.js';
8
 
9
+ // HuggingFace model URL
10
+ const MODEL_URL = 'https://huggingface.co/LiquidAI/LFM2.5-Audio-1.5B-ONNX/resolve/main';
11
 
12
  // Model configurations
13
  const MODELS = {
14
  'LFM2.5-Audio-1.5B-Q4': {
15
+ path: MODEL_URL,
16
  label: 'LFM2.5-Audio-1.5B Q4 (~1.6 GB)',
17
  quantization: {
18
  decoder: 'q4',