Update asr.py
Browse files
asr.py
CHANGED
@@ -9,7 +9,7 @@ MODEL_ID = "facebook/mms-1b-all"
|
|
9 |
processor = AutoProcessor.from_pretrained(MODEL_ID)
|
10 |
model = Wav2Vec2ForCTC.from_pretrained(MODEL_ID)
|
11 |
|
12 |
-
def transcribe(audio
|
13 |
if audio is None:
|
14 |
return "ERROR: You have to either use the microphone or upload an audio file"
|
15 |
|
|
|
9 |
processor = AutoProcessor.from_pretrained(MODEL_ID)
|
10 |
model = Wav2Vec2ForCTC.from_pretrained(MODEL_ID)
|
11 |
|
12 |
+
def transcribe(audio):
|
13 |
if audio is None:
|
14 |
return "ERROR: You have to either use the microphone or upload an audio file"
|
15 |
|