Spaces:
Runtime error
Runtime error
use api call
Browse files- 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 |
-
|
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 |
|