sabya87 commited on
Commit
01db5c7
·
1 Parent(s): add76e8

Update app.py

Browse files

Updated inputs in synthesise. Incorrectly mentioned as text_example instead of text previously

Files changed (1) hide show
  1. app.py +1 -1
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(text_example, return_tensors="pt")
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