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 6
6
7
7
import numpy as np
8
8
from modelcache .manager .vector_data .base import VectorBase , VectorData
9
- # from modelcache.utils import import_redis
9
+ from modelcache .utils import import_redis
10
10
# from modelcache.utils.log import gptcache_log
11
11
12
- # import_redis()
12
+ import_redis ()
13
13
#
14
- # # pylint: disable=C0413
15
14
# from redis.commands.search.indexDefinition import IndexDefinition, IndexType
16
15
# from redis.commands.search.query import Query
17
16
# 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():
69
69
70
70
def import_pillow ():
71
71
_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