Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
23 |
-
processor = Speech2TextProcessor.from_pretrained("
|
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)
|