Spaces:
Running
on
T4
Running
on
T4
Update sample rate change
Browse files
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
|