pratikshahp commited on
Commit
a71f99c
·
verified ·
1 Parent(s): 69063ab

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("facebook/s2t-large-librispeech-asr")
23
- processor = Speech2TextProcessor.from_pretrained("facebook/s2t-large-librispeech-asr")
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("google/speech-to-text")
23
+ processor = Speech2TextProcessor.from_pretrained("google/speech-to-text")
24
 
25
  # Preprocess audio
26
  input_features = preprocess_audio(audio_bytes)