imorcillo commited on
Commit
c9f8542
·
verified ·
1 Parent(s): 5b5c6c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def transcribe_base(audio, language):
35
  try:
36
  response = langswitch_API_call(audio, language)
37
  print(response)
38
- if response == None: return "Audio file too long! Audio file should be shorter than 1 minute."
39
  except Exception as e:
40
  if "Invalid file: None" in str(e):
41
  return "⚠️ Check that you have clicked the stop button or wait for the audio to load completely."
 
35
  try:
36
  response = langswitch_API_call(audio, language)
37
  print(response)
38
+ if response == None: return "⚠️ Audio file too long! Audio file should be shorter than 1 minute."
39
  except Exception as e:
40
  if "Invalid file: None" in str(e):
41
  return "⚠️ Check that you have clicked the stop button or wait for the audio to load completely."