Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -196,7 +196,7 @@ def encode_and_upload():
|
|
| 196 |
else:
|
| 197 |
print(f"Collection '{collection_name}' already exists. Skipping creation.")
|
| 198 |
|
| 199 |
-
# Check
|
| 200 |
existing_ids = set()
|
| 201 |
scroll_res, _ = client.scroll(collection_name=collection_name, with_payload=False, limit=100000)
|
| 202 |
existing_ids = {point.id for point in scroll_res}
|
|
|
|
| 196 |
else:
|
| 197 |
print(f"Collection '{collection_name}' already exists. Skipping creation.")
|
| 198 |
|
| 199 |
+
# Check already uploaded points
|
| 200 |
existing_ids = set()
|
| 201 |
scroll_res, _ = client.scroll(collection_name=collection_name, with_payload=False, limit=100000)
|
| 202 |
existing_ids = {point.id for point in scroll_res}
|