Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze
|
|
23 |
|
24 |
def translate(audio):
|
25 |
# outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "nl"})
|
26 |
-
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "
|
27 |
return outputs["text"]
|
28 |
|
29 |
|
|
|
23 |
|
24 |
def translate(audio):
|
25 |
# outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "nl"})
|
26 |
+
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe"})
|
27 |
return outputs["text"]
|
28 |
|
29 |
|