unijoh commited on
Commit
383e4c1
1 Parent(s): 02dba76

Update asr.py

Browse files
Files changed (1) hide show
  1. asr.py +1 -1
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=None):
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