Spaces:
Sleeping
Sleeping
Update run.py
Browse files
run.py
CHANGED
@@ -45,7 +45,7 @@ print(str(client.list_collections()))
|
|
45 |
global collection
|
46 |
if("name=BerufenetDB1" in str(client.list_collections())):
|
47 |
print("BerufenetDB1 found!")
|
48 |
-
collection = client.get_collection(name
|
49 |
|
50 |
print("Database ready!")
|
51 |
print(collection.count())
|
|
|
45 |
global collection
|
46 |
if("name=BerufenetDB1" in str(client.list_collections())):
|
47 |
print("BerufenetDB1 found!")
|
48 |
+
collection = client.get_collection(name="BerufenetDB1", embedding_function=embeddingFunction)
|
49 |
|
50 |
print("Database ready!")
|
51 |
print(collection.count())
|