Sandiago21 commited on
Commit
b0f2b1a
·
verified ·
1 Parent(s): efcf5d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -982,6 +982,9 @@ safe_app = safe_workflow.compile()
982
 
983
 
984
  def transcribe_speech(filepath):
 
 
 
985
  output = audio_pipe(
986
  filepath,
987
  max_new_tokens=256,
 
982
 
983
 
984
  def transcribe_speech(filepath):
985
+ if filepath is None:
986
+ return "No audio provided"
987
+
988
  output = audio_pipe(
989
  filepath,
990
  max_new_tokens=256,