Spaces:
Sleeping
Sleeping
updated line 76-79
#1
by
pushp2401doaz
- opened
app.py
CHANGED
|
@@ -73,10 +73,10 @@ def remove_low_size_images(data_path):
|
|
| 73 |
os.remove(os.path.join(data_path, one_image))
|
| 74 |
|
| 75 |
def initialize_qdrant(temp_dir):
|
| 76 |
-
try :
|
| 77 |
-
|
| 78 |
-
except :
|
| 79 |
-
pass
|
| 80 |
if "vectordatabase" not in st.session_state or not st.session_state.vectordatabase:
|
| 81 |
text_store = QdrantVectorStore(client=client, collection_name="text_collection_pipeline")
|
| 82 |
image_store = QdrantVectorStore(client=client, collection_name="image_collection_pipeline")
|
|
|
|
| 73 |
os.remove(os.path.join(data_path, one_image))
|
| 74 |
|
| 75 |
def initialize_qdrant(temp_dir):
|
| 76 |
+
# try :
|
| 77 |
+
client = qdrant_client.QdrantClient(path="qdrant_mm_db_pipeline")
|
| 78 |
+
# except :
|
| 79 |
+
# pass
|
| 80 |
if "vectordatabase" not in st.session_state or not st.session_state.vectordatabase:
|
| 81 |
text_store = QdrantVectorStore(client=client, collection_name="text_collection_pipeline")
|
| 82 |
image_store = QdrantVectorStore(client=client, collection_name="image_collection_pipeline")
|