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