Spaces:
Runtime error
Runtime error
use api call
Browse files- singularity.py +1 -1
singularity.py
CHANGED
@@ -142,7 +142,7 @@ No problem , it's my pleasure !
|
|
142 |
|
143 |
def transcribe(self, audio):
|
144 |
sample_rate, data = audio
|
145 |
-
if data:
|
146 |
data_as_array = data.tolist()
|
147 |
else:
|
148 |
print(sample_rate, data)
|
|
|
142 |
|
143 |
def transcribe(self, audio):
|
144 |
sample_rate, data = audio
|
145 |
+
if data.any():
|
146 |
data_as_array = data.tolist()
|
147 |
else:
|
148 |
print(sample_rate, data)
|