Skip to content

Commit

Permalink
fix grpc/gevent conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
guchenhe committed Jan 2, 2024
1 parent 89c51e0 commit 1fe2bed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fe2bed

Please sign in to comment.