cdleong commited on
Commit
d3a2cef
·
1 Parent(s): 74e2a8d

f-strings need an "f" in front.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def get_path_to_wav_format(uploaded_file):
36
  new_desired_path = actual_file_path.with_suffix(".wav")
37
  encoding="PCM_S" # Prevent encoding errors. https://stackoverflow.com/questions/60352850/wave-error-unknown-format-3-arises-when-trying-to-convert-a-wav-file-into-text
38
  bits_per_sample=16
39
- st.info("Allosaurus requires .wav files. Converting with torchaudio, encoding={encoding}, bits_per_sample={bits_per_sample}")
40
  waveform, sample_rate = torchaudio.load(actual_file_path)
41
  st.info(f"Uploaded file sample_rate: {sample_rate}")
42
  torchaudio.save(new_desired_path, waveform, sample_rate,
 
36
  new_desired_path = actual_file_path.with_suffix(".wav")
37
  encoding="PCM_S" # Prevent encoding errors. https://stackoverflow.com/questions/60352850/wave-error-unknown-format-3-arises-when-trying-to-convert-a-wav-file-into-text
38
  bits_per_sample=16
39
+ st.info(f"Allosaurus requires .wav files. Converting with torchaudio, encoding={encoding}, bits_per_sample={bits_per_sample}")
40
  waveform, sample_rate = torchaudio.load(actual_file_path)
41
  st.info(f"Uploaded file sample_rate: {sample_rate}")
42
  torchaudio.save(new_desired_path, waveform, sample_rate,