tuan243 commited on
Commit
f96ce38
·
verified ·
1 Parent(s): 528b620

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -5,9 +5,16 @@ import shutil
5
  from funasr import AutoModel
6
  from funasr.utils.postprocess_utils import rich_transcription_postprocess
7
 
8
- import funasr
 
 
 
 
 
 
 
 
9
 
10
- print(f"funasr version: {funasr.__version__}")
11
 
12
 
13
 
 
5
  from funasr import AutoModel
6
  from funasr.utils.postprocess_utils import rich_transcription_postprocess
7
 
8
+ from funasr.auto.auto_model import AutoModel
9
+ import os
10
+
11
+ model_dir = "FunAudioLLM/SenseVoiceSmall"
12
+ try:
13
+ model = AutoModel(model=model_dir, vad_model="fsmn-vad", device="cpu", hub="hf")
14
+ print("✅ Model loaded successfully!")
15
+ except Exception as e:
16
+ print("❌ Model loading error:", str(e))
17
 
 
18
 
19
 
20