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