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