WinWut commited on
Commit
f6e9e76
·
1 Parent(s): 5a55228

Update app.py

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