Tonic commited on
Commit
0934694
·
1 Parent(s): be9cd13

Revert "chroma client fix 2"

Browse files

This reverts commit a4669e2ddaf6b11376cb1f9c5eda55358caa7eff.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -193,7 +193,7 @@ def load_documents(file_path: str, mode: str = "elements"):
193
  return [doc.page_content for doc in docs]
194
 
195
  def initialize_chroma(collection_name: str, embedding_function: MyEmbeddingFunction):
196
- client = chromadb.HttpClient(host='localhost', port=8000, settings=Settings(allow_reset=True, anonymized_telemetry=False))
197
  client.reset() # resets the database
198
  collection = client.create_collection(collection_name)
199
  return client, collection
 
193
  return [doc.page_content for doc in docs]
194
 
195
  def initialize_chroma(collection_name: str, embedding_function: MyEmbeddingFunction):
196
+ client = chromadb.HttpClient(host='127.0.0.1', port=8000, settings=Settings(allow_reset=True, anonymized_telemetry=False))
197
  client.reset() # resets the database
198
  collection = client.create_collection(collection_name)
199
  return client, collection