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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,11 +25,11 @@ def translate(audio):
25
 
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')
33
  speech = speech[0] # remove batch dimension
34
  return speech.cpu()
35
 
 
25
 
26
 
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
34
  return speech.cpu()
35