not-lain commited on
Commit
c540f1a
1 Parent(s): 219ee2d

changes to the audio function

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -23,7 +23,8 @@ def process_speech(audio_input,input_language,target_language):
23
  """
24
  processing sound using seamless_m4t
25
  """
26
- time.sleep(2) # wait for the audio to be saved
 
27
  print(f"audio : {audio_input}")
28
  print(f"audio type : {type(audio_input)}")
29
 
 
23
  """
24
  processing sound using seamless_m4t
25
  """
26
+ if audio_input is None :
27
+ return "no audio or audio did not save yet \nplease try again ! "
28
  print(f"audio : {audio_input}")
29
  print(f"audio type : {type(audio_input)}")
30