Spaces:
Running
Running
Update asr.py
Browse files
asr.py
CHANGED
@@ -4,8 +4,8 @@ from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
|
|
4 |
import numpy as np
|
5 |
|
6 |
# Load processor and model
|
7 |
-
processor = AutoProcessor.from_pretrained("ixxan/whisper-small-
|
8 |
-
model = AutoModelForSpeechSeq2Seq.from_pretrained("ixxan/whisper-small-
|
9 |
|
10 |
|
11 |
def transcribe(audio_data) -> str:
|
|
|
4 |
import numpy as np
|
5 |
|
6 |
# Load processor and model
|
7 |
+
processor = AutoProcessor.from_pretrained("ixxan/whisper-small-common-voice-ug")
|
8 |
+
model = AutoModelForSpeechSeq2Seq.from_pretrained("ixxan/whisper-small-common-voice-ug")
|
9 |
|
10 |
|
11 |
def transcribe(audio_data) -> str:
|