Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,8 @@ client = QdrantClient(
|
|
32 |
prefer_grpc=True
|
33 |
)
|
34 |
|
|
|
|
|
35 |
# Check if the connection is successful
|
36 |
try:
|
37 |
client.get_collection(collection_name)
|
@@ -40,7 +42,6 @@ except Exception as e:
|
|
40 |
print(f"Failed to connect to Qdrant: {e}")
|
41 |
raise e
|
42 |
|
43 |
-
collection_name = "mawared"
|
44 |
|
45 |
# Try to create collection, handle if it already exists
|
46 |
try:
|
|
|
32 |
prefer_grpc=True
|
33 |
)
|
34 |
|
35 |
+
collection_name="mawared"
|
36 |
+
|
37 |
# Check if the connection is successful
|
38 |
try:
|
39 |
client.get_collection(collection_name)
|
|
|
42 |
print(f"Failed to connect to Qdrant: {e}")
|
43 |
raise e
|
44 |
|
|
|
45 |
|
46 |
# Try to create collection, handle if it already exists
|
47 |
try:
|