pratikshahp commited on
Commit
39e06d6
·
verified ·
1 Parent(s): a71f99c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ def preprocess_audio(audio_bytes, sample_rate=16000):
19
  return waveform
20
 
21
  def transcribe_audio(audio_bytes):
22
- model = Speech2TextForConditionalGeneration.from_pretrained("google/speech-to-text")
23
- processor = Speech2TextProcessor.from_pretrained("google/speech-to-text")
24
 
25
  # Preprocess audio
26
  input_features = preprocess_audio(audio_bytes)
 
19
  return waveform
20
 
21
  def transcribe_audio(audio_bytes):
22
+ model = Speech2TextForConditionalGeneration.from_pretrained("facebook/wav2vec2-large-100k-voxpopuli")
23
+ processor = Speech2TextProcessor.from_pretrained("facebook/wav2vec2-large-100k-voxpopuli")
24
 
25
  # Preprocess audio
26
  input_features = preprocess_audio(audio_bytes)