Spaces:
Runtime error
Runtime error
update input parameters
Browse files
app.py
CHANGED
@@ -21,7 +21,8 @@ def convert (audio):
|
|
21 |
pac.convert_wav_to_16bit_mono(audio.name,audio.name)
|
22 |
return True
|
23 |
|
24 |
-
def transcribe(audio):
|
|
|
25 |
start = timeit.default_timer()
|
26 |
if convert(audio)== False:
|
27 |
return "The format must be mp3,wav and ogg"
|
|
|
21 |
pac.convert_wav_to_16bit_mono(audio.name,audio.name)
|
22 |
return True
|
23 |
|
24 |
+
def transcribe(audio, audio_microphone):
|
25 |
+
audio = audio_microphone if audio_microphone else audio
|
26 |
start = timeit.default_timer()
|
27 |
if convert(audio)== False:
|
28 |
return "The format must be mp3,wav and ogg"
|