constantinSch
commited on
Commit
•
6e58a0b
1
Parent(s):
54d5354
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze
|
|
22 |
|
23 |
|
24 |
def translate(audio):
|
25 |
-
|
26 |
-
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language" : "
|
27 |
return outputs["text"]
|
28 |
|
29 |
|
|
|
22 |
|
23 |
|
24 |
def translate(audio):
|
25 |
+
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language" : "<|de|>"})
|
26 |
+
# outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language" : "<|nl|>"})
|
27 |
return outputs["text"]
|
28 |
|
29 |
|