Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze
|
|
42 |
# At Inference. it should use translate(sample["audio"].copy())
|
43 |
|
44 |
def translate(audio):
|
45 |
-
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "
|
46 |
return outputs["text"]
|
47 |
|
48 |
|
|
|
42 |
# At Inference. it should use translate(sample["audio"].copy())
|
43 |
|
44 |
def translate(audio):
|
45 |
+
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "de"})
|
46 |
return outputs["text"]
|
47 |
|
48 |
|