Adbhut commited on
Commit
16157cd
·
1 Parent(s): af6ddfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def translate(audio):
27
  def synthesise(text):
28
  print(text)
29
  inputs = tokenizer(text=text, return_tensors="pt")
30
- inputs['input_ids'] = inputs['input_ids'].long()
31
  with torch.no_grad():
32
  speech = model(**inputs).waveform
33
  speech = speech[0] # remove batch dimension
 
27
  def synthesise(text):
28
  print(text)
29
  inputs = tokenizer(text=text, return_tensors="pt")
30
+ # inputs['input_ids'] = inputs['input_ids'].long()
31
  with torch.no_grad():
32
  speech = model(**inputs).waveform
33
  speech = speech[0] # remove batch dimension