Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def predict_language(audio_input):
|
|
80 |
if isinstance(audio_input, str):
|
81 |
# Load the audio file
|
82 |
audio, sr = librosa.load(audio_input, sr=None)
|
83 |
-
|
84 |
# Get the sample rate and convert the audio data to float
|
85 |
sr, audio = audio_input
|
86 |
audio = audio.astype(np.float32)
|
|
|
80 |
if isinstance(audio_input, str):
|
81 |
# Load the audio file
|
82 |
audio, sr = librosa.load(audio_input, sr=None)
|
83 |
+
else:
|
84 |
# Get the sample rate and convert the audio data to float
|
85 |
sr, audio = audio_input
|
86 |
audio = audio.astype(np.float32)
|