Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -77,8 +77,9 @@ try:
|
|
77 |
CHROMA_PATH = "chroma"
|
78 |
custom_embeddings = MyEmbeddingFunction()
|
79 |
db = Chroma(
|
80 |
-
|
81 |
)
|
|
|
82 |
except Exception as e:
|
83 |
print("Error in database :",str(e))
|
84 |
|
|
|
77 |
CHROMA_PATH = "chroma"
|
78 |
custom_embeddings = MyEmbeddingFunction()
|
79 |
db = Chroma(
|
80 |
+
embedding_function=custom_embeddings
|
81 |
)
|
82 |
+
#persist_directory=CHROMA_PATH,
|
83 |
except Exception as e:
|
84 |
print("Error in database :",str(e))
|
85 |
|