Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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."
|