Zw07 commited on
Commit
6bff3e8
·
verified ·
1 Parent(s): c3cf49f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -74,6 +74,7 @@ def main():
74
 
75
  # Load the WAV file using torchaudio
76
  wav, sample_rate = torchaudio.load(wav_output_file)
 
77
 
78
  # Play the audio file (WAV format)
79
  st.audio(wav_output_file, format="audio/wav")
 
74
 
75
  # Load the WAV file using torchaudio
76
  wav, sample_rate = torchaudio.load(wav_output_file)
77
+ wav.unsqueeze(0)
78
 
79
  # Play the audio file (WAV format)
80
  st.audio(wav_output_file, format="audio/wav")