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

use api call

Browse files
Files changed (1) hide show
  1. singularity.py +1 -5
singularity.py CHANGED
@@ -142,11 +142,7 @@ No problem , it's my pleasure !
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)
149
- exit(4)
150
  transcript = self.query_transcription(data)
151
  return transcript[0]
152
 
 
142
 
143
  def transcribe(self, audio):
144
  sample_rate, data = audio
145
+ data = data.tobytes()
 
 
 
 
146
  transcript = self.query_transcription(data)
147
  return transcript[0]
148