heisenberg3376 commited on
Commit
c9dc5f3
1 Parent(s): 9307dab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def translate(audio):
23
 
24
 
25
  def synthesise(text):
26
- inputs = processor(text=text, return_tensors="pt")
27
  speech = model(inputs["input_ids"].to(device))
28
  return speech.cpu()
29
 
 
23
 
24
 
25
  def synthesise(text):
26
+ inputs = tokenizer(text=text, return_tensors="pt")
27
  speech = model(inputs["input_ids"].to(device))
28
  return speech.cpu()
29