Restore HF loading
Browse files
main.js
CHANGED
|
@@ -6,13 +6,13 @@
|
|
| 6 |
|
| 7 |
import { AudioModel, loadAudioFile, clearModelCache, getCacheInfo } from './audio-model.js';
|
| 8 |
|
| 9 |
-
//
|
| 10 |
-
const
|
| 11 |
|
| 12 |
// Model configurations
|
| 13 |
const MODELS = {
|
| 14 |
'LFM2.5-Audio-1.5B-Q4': {
|
| 15 |
-
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',
|