TaiYouWeb commited on
Commit
3830518
·
verified ·
1 Parent(s): 56d901d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -30,7 +30,8 @@ model = AutoModel(
30
  remote_code="./model.py",
31
  vad_model="fsmn-vad",
32
  punc_model="ct-punc",
33
- vad_kwargs={"max_single_segment_time": 30000},
 
34
  ncpu=torch.get_num_threads(),
35
  batch_size=1,
36
  hub="hf",
@@ -40,7 +41,7 @@ model = AutoModel(
40
  def transcribe_audio(file_path, vad_model="fsmn-vad", punc_model="ct-punc", vad_kwargs='{"max_single_segment_time": 30000}',
41
  batch_size=1, language="auto", use_itn=True, batch_size_s=60,
42
  merge_vad=True, merge_length_s=15, batch_size_threshold_s=50,
43
- hotword=" ", spk_model="cam++", ban_emo_unk=True):
44
  try:
45
  vad_kwargs = json.loads(vad_kwargs)
46
 
 
30
  remote_code="./model.py",
31
  vad_model="fsmn-vad",
32
  punc_model="ct-punc",
33
+ spk_model="cam++",
34
+ vad_kwargs={"max_single_segment_time": 15000},
35
  ncpu=torch.get_num_threads(),
36
  batch_size=1,
37
  hub="hf",
 
41
  def transcribe_audio(file_path, vad_model="fsmn-vad", punc_model="ct-punc", vad_kwargs='{"max_single_segment_time": 30000}',
42
  batch_size=1, language="auto", use_itn=True, batch_size_s=60,
43
  merge_vad=True, merge_length_s=15, batch_size_threshold_s=50,
44
+ hotword=" ", ban_emo_unk=True):
45
  try:
46
  vad_kwargs = json.loads(vad_kwargs)
47