Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,10 @@ import chromadb
|
|
| 4 |
from chromadb.config import Settings
|
| 5 |
|
| 6 |
# Initialize ChromaDB client
|
| 7 |
-
client_db = chromadb.Client(
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
# Load your collection
|
| 10 |
collection = client_db.get_collection("my_collection")
|
|
@@ -71,4 +74,4 @@ demo = gr.ChatInterface(
|
|
| 71 |
)
|
| 72 |
|
| 73 |
if __name__ == "__main__":
|
| 74 |
-
demo.launch()
|
|
|
|
| 4 |
from chromadb.config import Settings
|
| 5 |
|
| 6 |
# Initialize ChromaDB client
|
| 7 |
+
client_db = chromadb.Client(Settings(
|
| 8 |
+
chroma_db_impl="duckdb+parquet",
|
| 9 |
+
persist_directory="chromadb_directory"
|
| 10 |
+
))
|
| 11 |
|
| 12 |
# Load your collection
|
| 13 |
collection = client_db.get_collection("my_collection")
|
|
|
|
| 74 |
)
|
| 75 |
|
| 76 |
if __name__ == "__main__":
|
| 77 |
+
demo.launch()
|