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