Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
8 |
|
9 |
# Load your collection
|
10 |
-
collection = client_db.get_collection("
|
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")
|