Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import librosa
|
|
4 |
|
5 |
# Function to load audio using librosa
|
6 |
def load_audio(file):
|
7 |
-
audio, sr = librosa.load(file, sr=None)
|
8 |
return audio, sr
|
9 |
|
10 |
# Function to get a relevant audio segment based on onset detection
|
|
|
4 |
|
5 |
# Function to load audio using librosa
|
6 |
def load_audio(file):
|
7 |
+
audio, sr = librosa.load(file, sr=None) # Load the audio file
|
8 |
return audio, sr
|
9 |
|
10 |
# Function to get a relevant audio segment based on onset detection
|