Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ model = EncoderASR.from_hparams("speechbrain/asr-wav2vec2-dvoice-wolof")
|
|
8 |
|
9 |
def transcribe(audio):
|
10 |
if isinstance(audio, str): # If input is a file path
|
11 |
-
return model.transcribe_file(audio
|
12 |
else: # If input is audio data from microphone
|
13 |
return model.transcribe_array(audio)
|
14 |
|
|
|
8 |
|
9 |
def transcribe(audio):
|
10 |
if isinstance(audio, str): # If input is a file path
|
11 |
+
return model.transcribe_file(audio)
|
12 |
else: # If input is audio data from microphone
|
13 |
return model.transcribe_array(audio)
|
14 |
|