waxihiv547 commited on
Commit
5f72f6f
1 Parent(s): 49df6e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -37,7 +37,6 @@ def run_inference():
37
  if duration > 20 and limitation:
38
  return "Please upload an audio file that is less than 20 seconds. If you need to generate a longer audio file, please use Colab.", 400
39
 
40
- audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32)
41
  if len(audio.shape) > 1:
42
  audio = librosa.to_mono(audio.transpose(1, 0))
43
  if sampling_rate != 16000:
 
37
  if duration > 20 and limitation:
38
  return "Please upload an audio file that is less than 20 seconds. If you need to generate a longer audio file, please use Colab.", 400
39
 
 
40
  if len(audio.shape) > 1:
41
  audio = librosa.to_mono(audio.transpose(1, 0))
42
  if sampling_rate != 16000: