Adbhut commited on
Commit
561edcc
·
1 Parent(s): 610bf04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -26,8 +26,10 @@ def translate(audio):
26
 
27
  def synthesise(text):
28
  inputs = tokenizer(text=text, return_tensors="pt")
 
29
  with torch.no_grad():
30
  speech = model(**inputs).waveform
 
31
  speech = speech[0] # remove batch dimension
32
  return speech.cpu()
33
 
 
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')
33
  speech = speech[0] # remove batch dimension
34
  return speech.cpu()
35