Update app.py
Browse files
app.py
CHANGED
|
@@ -142,7 +142,8 @@ def create_vector_db(final_items):
|
|
| 142 |
|
| 143 |
# Initialize the database
|
| 144 |
db = client.get_or_create_collection(name=collection_name, embedding_function=embedding_function)
|
| 145 |
-
|
|
|
|
| 146 |
documents_to_add = []
|
| 147 |
ids_to_add = []
|
| 148 |
|
|
|
|
| 142 |
|
| 143 |
# Initialize the database
|
| 144 |
db = client.get_or_create_collection(name=collection_name, embedding_function=embedding_function)
|
| 145 |
+
if db is None:
|
| 146 |
+
print("Database has not been grabbed.")
|
| 147 |
documents_to_add = []
|
| 148 |
ids_to_add = []
|
| 149 |
|