thuyentruong
commited on
Commit
•
506e9f9
1
Parent(s):
6115469
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def translate(audio):
|
|
29 |
|
30 |
def synthesise(text):
|
31 |
inputs = processor(text=text, return_tensors="pt",
|
32 |
-
max_length=
|
33 |
truncation=True,
|
34 |
)
|
35 |
speech = model.generate_speech(inputs["input_ids"].to(device), speaker_embeddings.to(device), vocoder=vocoder)
|
|
|
29 |
|
30 |
def synthesise(text):
|
31 |
inputs = processor(text=text, return_tensors="pt",
|
32 |
+
max_length=582,
|
33 |
truncation=True,
|
34 |
)
|
35 |
speech = model.generate_speech(inputs["input_ids"].to(device), speaker_embeddings.to(device), vocoder=vocoder)
|