osanseviero commited on
Commit
9c77c78
1 Parent(s): 150d999

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def load_audio_special(sr, data):
59
  norm_fix = 2 ** 15
60
  elif data.dtype == np.float16 or data.dtype == np.float32:
61
  norm_fix = 1.
62
- audio = torch.FloatTensor(data.astype(np.float32)) / norm_fix, sampling_rate))
63
 
64
  # Remove any channel data.
65
  if len(audio.shape) > 1:
 
59
  norm_fix = 2 ** 15
60
  elif data.dtype == np.float16 or data.dtype == np.float32:
61
  norm_fix = 1.
62
+ audio = torch.FloatTensor(data.astype(np.float32)) / norm_fix
63
 
64
  # Remove any channel data.
65
  if len(audio.shape) > 1: