Update app.py
Browse filesUpdated inputs in synthesise. Incorrectly mentioned as text_example instead of text previously
app.py
CHANGED
@@ -29,7 +29,7 @@ def translate(audio):
|
|
29 |
def synthesise(text):
|
30 |
#inputs = processor(text=text, return_tensors="pt")
|
31 |
#speech = model.generate_speech(inputs["input_ids"].to(device), speaker_embeddings.to(device), vocoder=vocoder)
|
32 |
-
inputs = tokenizer(
|
33 |
input_ids = inputs["input_ids"].to(device)
|
34 |
|
35 |
|
|
|
29 |
def synthesise(text):
|
30 |
#inputs = processor(text=text, return_tensors="pt")
|
31 |
#speech = model.generate_speech(inputs["input_ids"].to(device), speaker_embeddings.to(device), vocoder=vocoder)
|
32 |
+
inputs = tokenizer(text, return_tensors="pt")
|
33 |
input_ids = inputs["input_ids"].to(device)
|
34 |
|
35 |
|