Spaces:
Runtime error
Runtime error
changes to the audio function
Browse files
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 |
-
|
|
|
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 |
|