cdleong commited on
Commit
5d08fb8
·
1 Parent(s): 0f7a10e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -48,9 +48,10 @@ if __name__ == "__main__":
48
  # audio_bytes = audio_file.read()
49
  st.audio(uploaded_file, format='audio/wav')
50
 
51
- wav_file = get_path_to_wav_format(uploaded_file)
52
- st.write(wav_file)
53
- result = model.recognize(wav_file, langcode)
54
- st.write(result)
 
55
 
56
 
 
48
  # audio_bytes = audio_file.read()
49
  st.audio(uploaded_file, format='audio/wav')
50
 
51
+ # wav_file = get_path_to_wav_format(uploaded_file)
52
+ with open(uploaded_file, 'rb') as wav_file:
53
+ # st.write(wav_file)
54
+ result = model.recognize(wav_file, langcode)
55
+ st.write(result)
56
 
57