Marco-Cheung commited on
Commit
bcbcb8f
1 Parent(s): 6746e58

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
  return outputs["text"]
24
 
25
  def synthesise(text):
26
- inputs = tokenizer(text_example, return_tensors="pt")
27
  input_ids = inputs["input_ids"]
28
 
29
  with torch.no_grad():
 
23
  return outputs["text"]
24
 
25
  def synthesise(text):
26
+ inputs = tokenizer(text, return_tensors="pt")
27
  input_ids = inputs["input_ids"]
28
 
29
  with torch.no_grad():