on1onmangoes commited on
Commit
b38a0bf
1 Parent(s): 9cc58f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ st.markdown("---",unsafe_allow_html=True)
16
  audio=st.file_uploader("Upload Your Audio File", type=['mp3','wav','m4a'])
17
 
18
  if audio:
19
- pipe = pipeline(model="facebook/wav2vec2-base-960h")
20
  audio_segment= AudioSegment.from_file(audio)
21
  audio_segment.export("audio.wav", format="wav")
22
  output = pipe("audio.wav", chunk_length_s=10, stride_length_s=(4, 2))
 
16
  audio=st.file_uploader("Upload Your Audio File", type=['mp3','wav','m4a'])
17
 
18
  if audio:
19
+ pipe = pipeline('automatic-speech-recognition',model="facebook/wav2vec2-base-960h")
20
  audio_segment= AudioSegment.from_file(audio)
21
  audio_segment.export("audio.wav", format="wav")
22
  output = pipe("audio.wav", chunk_length_s=10, stride_length_s=(4, 2))