Fix redis get error. (#4140)

### What problem does this PR solve?

#4126
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2024-12-20 10:39:50 +08:00 committed by GitHub
parent 10a62115c7
commit 6379a934ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,7 +101,7 @@ def get_embed_cache(llmnm, txt):
bin = REDIS_CONN.get(k)
if not bin:
return
return np.array(json.loads(bin.decode("utf-8")))
return np.array(json.loads(bin))
def set_embed_cache(llmnm, txt, arr):