Update app.py
Browse files
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
|