Fixed typo
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze
|
|
21 |
|
22 |
|
23 |
def translate(audio, language="es"):
|
24 |
-
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", language
|
25 |
return outputs["text"]
|
26 |
|
27 |
|
|
|
21 |
|
22 |
|
23 |
def translate(audio, language="es"):
|
24 |
+
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": language})
|
25 |
return outputs["text"]
|
26 |
|
27 |
|