Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def infer(
|
|
24 |
audio,
|
25 |
target
|
26 |
):
|
27 |
-
if type(audio) != tuple or type(target) != str: return
|
28 |
|
29 |
# preprocess
|
30 |
sampling_rate, wav = audio
|
|
|
24 |
audio,
|
25 |
target
|
26 |
):
|
27 |
+
if type(audio) != tuple or type(target) != str: return [None, None]
|
28 |
|
29 |
# preprocess
|
30 |
sampling_rate, wav = audio
|