Update app.py
Browse files
app.py
CHANGED
@@ -74,6 +74,8 @@ def main():
|
|
74 |
|
75 |
# Load the WAV file using torchaudio
|
76 |
wav, sample_rate = torchaudio.load(wav_output_file)
|
|
|
|
|
77 |
wav= wav.unsqueeze(0)
|
78 |
|
79 |
# Play the audio file (WAV format)
|
@@ -82,7 +84,7 @@ def main():
|
|
82 |
# wav, sample_rate = torchaudio.load(audio_file, format="mp3/wav")
|
83 |
st.markdown("SR")
|
84 |
st.markdown(sample_rate)
|
85 |
-
st.markdown("wav")
|
86 |
st.markdown(wav)
|
87 |
# 展示文件到页面上
|
88 |
# st.audio(tmp_input_audio_file, format="audio/wav")
|
|
|
74 |
|
75 |
# Load the WAV file using torchaudio
|
76 |
wav, sample_rate = torchaudio.load(wav_output_file)
|
77 |
+
st.markdown("Before unsquuezewav")
|
78 |
+
st.markdown(wav)
|
79 |
wav= wav.unsqueeze(0)
|
80 |
|
81 |
# Play the audio file (WAV format)
|
|
|
84 |
# wav, sample_rate = torchaudio.load(audio_file, format="mp3/wav")
|
85 |
st.markdown("SR")
|
86 |
st.markdown(sample_rate)
|
87 |
+
st.markdown("after unsqueeze wav")
|
88 |
st.markdown(wav)
|
89 |
# 展示文件到页面上
|
90 |
# st.audio(tmp_input_audio_file, format="audio/wav")
|