Update chroma_impl.py
This commit is contained in:
parent
5d19a888b0
commit
2d085cda43
1 changed files with 2 additions and 7 deletions
|
|
@ -10,13 +10,8 @@ import pipmaster as pm
|
|||
if not pm.is_installed("chromadb"):
|
||||
pm.install("chromadb")
|
||||
|
||||
try:
|
||||
from chromadb import HttpClient, PersistentClient
|
||||
from chromadb.config import Settings
|
||||
except ImportError as e:
|
||||
raise ImportError(
|
||||
"`chromadb` library is not installed. Please install it via pip: `pip install chromadb`."
|
||||
) from e
|
||||
from chromadb import HttpClient, PersistentClient
|
||||
from chromadb.config import Settings
|
||||
|
||||
|
||||
@final
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue