Commit
•
c3d13cb
1
Parent(s):
28456aa
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ speaker_embeddings = speaker_embeddings_list[4]
|
|
64 |
|
65 |
def translate(audio):
|
66 |
# outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "translate"})
|
67 |
-
outputs =
|
68 |
return outputs["text"]
|
69 |
|
70 |
|
|
|
64 |
|
65 |
def translate(audio):
|
66 |
# outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "translate"})
|
67 |
+
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"language":"<|nl|>","task": "transcribe"})
|
68 |
return outputs["text"]
|
69 |
|
70 |
|