Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def extract_doc(path):
|
|
58 |
|
59 |
def create_col(documents):
|
60 |
# Create a client and a new collection
|
61 |
-
db_path = f'database/{str(uuid.uuid4()[:4]
|
62 |
client = chromadb.PersistentClient(path=db_path)
|
63 |
chroma_collection = client.get_or_create_collection("quickstart")
|
64 |
|
|
|
58 |
|
59 |
def create_col(documents):
|
60 |
# Create a client and a new collection
|
61 |
+
db_path = f'database/{str(uuid.uuid4())[:4]}'
|
62 |
client = chromadb.PersistentClient(path=db_path)
|
63 |
chroma_collection = client.get_or_create_collection("quickstart")
|
64 |
|