ronniet commited on
Commit
3200948
·
1 Parent(s): be0f3ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def tts(text):
22
  if len(text.strip()) == 0:
23
  return (16000, np.zeros(0).astype(np.int16))
24
 
25
- inputs = processor(text=text, return_tensors="pt")
26
 
27
  # limit input length
28
  input_ids = inputs["input_ids"]
 
22
  if len(text.strip()) == 0:
23
  return (16000, np.zeros(0).astype(np.int16))
24
 
25
+ inputs = tts_processor(text=text, return_tensors="pt")
26
 
27
  # limit input length
28
  input_ids = inputs["input_ids"]