rutsam commited on
Commit
7499088
1 Parent(s): 3a3c183

update input parameters

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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"