File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 66
77import numpy as np
88from modelcache .manager .vector_data .base import VectorBase , VectorData
9- # from modelcache.utils import import_redis
9+ from modelcache .utils import import_redis
1010# from modelcache.utils.log import gptcache_log
1111
12- # import_redis()
12+ import_redis ()
1313#
14- # # pylint: disable=C0413
1514# from redis.commands.search.indexDefinition import IndexDefinition, IndexType
1615# from redis.commands.search.query import Query
1716# from redis.commands.search.field import TagField, VectorField
Original file line number Diff line number Diff line change @@ -69,3 +69,8 @@ def import_timm():
6969
7070def import_pillow ():
7171 _check_library ("PIL" , package = "pillow" )
72+
73+
74+ def import_redis ():
75+ _check_library ("redis" )
76+ _check_library ("redis_om" )
You can’t perform that action at this time.
0 commit comments