Update app.py
Browse files
app.py
CHANGED
@@ -153,14 +153,17 @@ def main():
|
|
153 |
wav, sample_rate = torchaudio.load("test.wav")
|
154 |
st.markdown("Before unsquueze wav")
|
155 |
st.markdown(wav)
|
|
|
|
|
|
|
156 |
|
157 |
elif file_extension == ".mp3":
|
158 |
wav, sample_rate = librosa.load("test.mp3")
|
159 |
st.markdown("Before unsqueeze mp3")
|
160 |
st.markdown(wav)
|
161 |
|
162 |
-
#Unsqueeze for line 176
|
163 |
-
wav= wav.unsqueeze(0)
|
164 |
|
165 |
# #2nd way
|
166 |
# # Convert the tensor to a byte-like object in WAV format
|
|
|
153 |
wav, sample_rate = torchaudio.load("test.wav")
|
154 |
st.markdown("Before unsquueze wav")
|
155 |
st.markdown(wav)
|
156 |
+
|
157 |
+
#Unsqueeze for line 176
|
158 |
+
wav= wav.unsqueeze(0)
|
159 |
|
160 |
elif file_extension == ".mp3":
|
161 |
wav, sample_rate = librosa.load("test.mp3")
|
162 |
st.markdown("Before unsqueeze mp3")
|
163 |
st.markdown(wav)
|
164 |
|
165 |
+
# #Unsqueeze for line 176
|
166 |
+
# wav= wav.unsqueeze(0)
|
167 |
|
168 |
# #2nd way
|
169 |
# # Convert the tensor to a byte-like object in WAV format
|