Skip to content

Commit 86cdc6b

Browse files
niushengxiaohiworldwzj
authored andcommitted
[fix]fix image rpyc
1 parent 86f04f7 commit 86cdc6b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lightllm/models/whisper/whisper_audio.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,10 @@ def encode(self, audio_items: List[AudioItem]):
193193
ready_audio = self.cache_client.root.get_items_data(uuids)
194194
ids_to_set = []
195195
for i, ready in enumerate(ready_audio):
196-
if ready:
197-
continue
198-
uid = uuids[i]
199-
cur_embed_bytes = tensor2bytes(audios[i][: audio_token_num[i]])
200-
create_shm(get_shm_name_data(uid), cur_embed_bytes)
201-
ids_to_set.append(uid)
196+
if not ready:
197+
uid = uuids[i]
198+
cur_embed_bytes = tensor2bytes(audios[i][: audio_token_num[i]])
199+
create_shm(get_shm_name_embed(uid), cur_embed_bytes)
200+
ids_to_set.append(uid)
202201
if ids_to_set:
203202
self.cache_client.root.set_items_data(ids=ids_to_set)

0 commit comments

Comments
 (0)