From 1fe2bed090d7a5289cb52026463368d55562ad5a Mon Sep 17 00:00:00 2001 From: chenhe Date: Tue, 2 Jan 2024 17:54:30 +0800 Subject: [PATCH] fix grpc/gevent conflict --- api/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/app.py b/api/app.py index 0ba13f054354a6..4e5fd1f24bd368 100644 --- a/api/app.py +++ b/api/app.py @@ -6,9 +6,9 @@ if not os.environ.get("DEBUG") or os.environ.get("DEBUG").lower() != 'true': from gevent import monkey monkey.patch_all() - if os.environ.get("VECTOR_STORE") == 'milvus': - import grpc.experimental.gevent - grpc.experimental.gevent.init_gevent() + # if os.environ.get("VECTOR_STORE") == 'milvus': + import grpc.experimental.gevent + grpc.experimental.gevent.init_gevent() import langchain langchain.verbose = True