ghostdrive1 commited on
Commit
69d14a0
·
verified ·
1 Parent(s): 2cd72b0

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. examples/agent_service/main.py +3 -2
examples/agent_service/main.py CHANGED
@@ -39,8 +39,9 @@ if os.getenv("AMAP_API_KEY"):
39
  )
40
 
41
  storage = RedisStorage(
42
- host="localhost",
43
- port=6379,
 
44
  )
45
 
46
  vector_store = QdrantStore(location=":memory:")
 
39
  )
40
 
41
  storage = RedisStorage(
42
+ host=os.getenv("REDIS_HOST", "localhost"),
43
+ port=int(os.getenv("REDIS_PORT", "6379")),
44
+ password=os.getenv("REDIS_PASSWORD", None),
45
  )
46
 
47
  vector_store = QdrantStore(location=":memory:")