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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -87,6 +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
 
91
 
92
  # Preprocess the single audio file using VGG16 for feature extraction
 
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
 
93
  # Preprocess the single audio file using VGG16 for feature extraction