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