FrancescoBonzi
commited on
Commit
·
1f94edb
1
Parent(s):
327e5f8
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze
|
|
20 |
|
21 |
|
22 |
def translate(audio):
|
23 |
-
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "
|
24 |
print(outputs["text"])
|
25 |
return outputs["text"]
|
26 |
|
|
|
20 |
|
21 |
|
22 |
def translate(audio):
|
23 |
+
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "italian"})
|
24 |
print(outputs["text"])
|
25 |
return outputs["text"]
|
26 |
|