saronium commited on
Commit
e4412c8
·
verified ·
1 Parent(s): 45bb7e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- else:
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)