kevynswhants
commited on
Commit
·
667c141
1
Parent(s):
7731acc
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze
|
|
32 |
|
33 |
|
34 |
def translate(audio):
|
35 |
-
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "
|
36 |
return outputs["text"]
|
37 |
|
38 |
|
|
|
32 |
|
33 |
|
34 |
def translate(audio):
|
35 |
+
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "es"})
|
36 |
return outputs["text"]
|
37 |
|
38 |
|