mduppes commited on
Commit
cac08c6
1 Parent(s): 5a766fd

Update sample rate change

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,6 @@ translator = Translator(
43
  model_name_or_card="seamlessM4T_large",
44
  vocoder_name_or_card="vocoder_36langs",
45
  device=device,
46
- sample_rate=AUDIO_SAMPLE_RATE,
47
  )
48
 
49
 
@@ -81,6 +80,7 @@ def predict(
81
  tgt_lang=target_language_code,
82
  src_lang=source_language_code,
83
  ngram_filtering=True,
 
84
  )
85
  if task_name in ["S2ST", "T2ST"]:
86
  return (sr, wav.cpu().detach().numpy()), text_out
 
43
  model_name_or_card="seamlessM4T_large",
44
  vocoder_name_or_card="vocoder_36langs",
45
  device=device,
 
46
  )
47
 
48
 
 
80
  tgt_lang=target_language_code,
81
  src_lang=source_language_code,
82
  ngram_filtering=True,
83
+ sample_rate=AUDIO_SAMPLE_RATE,
84
  )
85
  if task_name in ["S2ST", "T2ST"]:
86
  return (sr, wav.cpu().detach().numpy()), text_out