wasertech commited on
Commit
3ea03a9
1 Parent(s): 7280384

use api call

Browse files
Files changed (1) hide show
  1. 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)