Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def translate(audio):
|
|
29 |
|
30 |
|
31 |
def synthesise(text):
|
32 |
-
inputs = processor(text=text, return_tensors="pt")
|
33 |
speech = model.generate_speech(inputs["input_ids"].to(device), speaker_embeddings.to(device), vocoder=vocoder)
|
34 |
return speech.cpu()
|
35 |
|
|
|
29 |
|
30 |
|
31 |
def synthesise(text):
|
32 |
+
inputs = processor(text=text, return_tensors="pt")[:, :600]
|
33 |
speech = model.generate_speech(inputs["input_ids"].to(device), speaker_embeddings.to(device), vocoder=vocoder)
|
34 |
return speech.cpu()
|
35 |
|