Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def classify_audio(audio_file):
|
|
25 |
output = ''
|
26 |
if sr != 16000:
|
27 |
y = librosa.resample(y, orig_sr=sr, target_sr=model_sr)
|
28 |
-
output += "{} sampling rate is uncompatible, converted to {} as the model was trained on {} sampling rate
|
29 |
|
30 |
|
31 |
norm_wav = (y - mean) / (std+0.000001)
|
|
|
25 |
output = ''
|
26 |
if sr != 16000:
|
27 |
y = librosa.resample(y, orig_sr=sr, target_sr=model_sr)
|
28 |
+
output += "{} sampling rate is uncompatible, converted to {} as the model was trained on {} sampling rate\n".format(sr, model_sr, model_sr)
|
29 |
|
30 |
|
31 |
norm_wav = (y - mean) / (std+0.000001)
|