Spaces:
Build error
Build error
prev chunk
Browse files- client/src/main.py +2 -2
client/src/main.py
CHANGED
@@ -58,10 +58,10 @@ def main():
|
|
58 |
print('start serialize')
|
59 |
if prev_audio_array:
|
60 |
serialized = pickle.dumps(
|
61 |
-
np.concatenate(
|
62 |
prev_audio_array,
|
63 |
current_audio_chunk.audio_array
|
64 |
-
)
|
65 |
)
|
66 |
else:
|
67 |
serialized = pickle.dumps(current_audio_chunk.audio_array)
|
|
|
58 |
print('start serialize')
|
59 |
if prev_audio_array:
|
60 |
serialized = pickle.dumps(
|
61 |
+
np.concatenate((
|
62 |
prev_audio_array,
|
63 |
current_audio_chunk.audio_array
|
64 |
+
))
|
65 |
)
|
66 |
else:
|
67 |
serialized = pickle.dumps(current_audio_chunk.audio_array)
|