chaouch commited on
Commit
7b9bf4b
1 Parent(s): c949774
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def synthesise2(text):
43
  with torch.no_grad():
44
  outputs = model_nld(**inputs)
45
  #speech = outputs.waveform[0]
46
- audio_tensor = output.audio
47
  # Convert tensor to numpy array
48
  audio_array = audio_tensor.numpy()
49
  # Reshape the audio array to 1D
 
43
  with torch.no_grad():
44
  outputs = model_nld(**inputs)
45
  #speech = outputs.waveform[0]
46
+ audio_tensor = outputs.audio
47
  # Convert tensor to numpy array
48
  audio_array = audio_tensor.numpy()
49
  # Reshape the audio array to 1D