etchen commited on
Commit
77ced63
·
verified ·
1 Parent(s): 3686641

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -24,6 +24,8 @@ def infer(
24
  audio,
25
  target
26
  ):
 
 
27
  # preprocess
28
  sampling_rate, wav = audio
29
  if wav.ndim > 1:
 
24
  audio,
25
  target
26
  ):
27
+ if type(audio) != tuple or type(target) != str: return
28
+
29
  # preprocess
30
  sampling_rate, wav = audio
31
  if wav.ndim > 1: