Adbhut commited on
Commit
231f594
·
1 Parent(s): 561edcc

Update app.py

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