Solshine commited on
Commit
d542df6
·
verified ·
1 Parent(s): 703992e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,10 +4,10 @@ import chromadb
4
  from chromadb.config import Settings
5
 
6
  # Initialize ChromaDB client
7
- client_db = chromadb.Client(Settings(chroma_db_impl="duckdb+parquet", persist_directory="path/to/your/chromadb"))
8
 
9
  # Load your collection
10
- collection = client_db.get_collection("your_collection_name")
11
 
12
  # Initialize the Hugging Face Inference Client
13
  inference_client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
 
4
  from chromadb.config import Settings
5
 
6
  # Initialize ChromaDB client
7
+ client_db = chromadb.Client(Settings(chroma_db_impl="duckdb+parquet", persist_directory="chromadb_directory")) # Adjusted path
8
 
9
  # Load your collection
10
+ collection = client_db.get_collection("my_collection")
11
 
12
  # Initialize the Hugging Face Inference Client
13
  inference_client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")