Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze
|
|
35 |
# At Inference. it should use translate(sample["audio"].copy())
|
36 |
|
37 |
def translate(audio):
|
38 |
-
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "
|
39 |
return outputs["text"]
|
40 |
|
41 |
|
|
|
35 |
# At Inference. it should use translate(sample["audio"].copy())
|
36 |
|
37 |
def translate(audio):
|
38 |
+
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "fi"})
|
39 |
return outputs["text"]
|
40 |
|
41 |
|