Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from model import *
|
|
4 |
st.header("Any songs to Lo-Fi")
|
5 |
x = st.file_uploader("Upload your music")
|
6 |
|
7 |
-
if
|
8 |
wv, sr = librosa.load(x, sr=16000) #Load waveform
|
9 |
print(wv.shape)
|
10 |
speca = prep(wv) #Waveform to Spectrogram
|
|
|
4 |
st.header("Any songs to Lo-Fi")
|
5 |
x = st.file_uploader("Upload your music")
|
6 |
|
7 |
+
if x is not None:
|
8 |
wv, sr = librosa.load(x, sr=16000) #Load waveform
|
9 |
print(wv.shape)
|
10 |
speca = prep(wv) #Waveform to Spectrogram
|