saronium commited on
Commit
04b2aaa
·
verified ·
1 Parent(s): 51d0bd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def predict_language(audio_input):
87
  else:
88
  # Get the sample rate and convert the audio data to float
89
  sr, audio = audio_input
90
- audio = audio.astype(np.float32)
91
 
92
  # Preprocess the single audio file using VGG16 for feature extraction
93
  preprocessed_features = preprocess_single_audio_vgg16(audio, sr, vgg16, pca)
 
87
  else:
88
  # Get the sample rate and convert the audio data to float
89
  sr, audio = audio_input
90
+
91
 
92
  # Preprocess the single audio file using VGG16 for feature extraction
93
  preprocessed_features = preprocess_single_audio_vgg16(audio, sr, vgg16, pca)