Spaces:
Running
Running
Update semsearch.py
Browse files- semsearch.py +13 -11
semsearch.py
CHANGED
@@ -151,17 +151,19 @@ webpageChunksDocNames = []
|
|
151 |
# )
|
152 |
#)
|
153 |
|
154 |
-
client = weaviate.connect_to_custom(
|
155 |
-
#http_host="http://huggingface.co/spaces/MVPilgrim/WeaviateDB",
|
156 |
-
http_host="http://weaviate",
|
157 |
-
http_port=8080,
|
158 |
-
http_secure=False,
|
159 |
-
#grpc_host="huggingface.co",
|
160 |
-
grpc_host="127.0.0.1",
|
161 |
-
grpc_port=50051,
|
162 |
-
grpc_secure=False
|
163 |
-
#auth_credentials=AuthApiKey(weaviate_key), # `weaviate_key`: your Weaviate API key
|
164 |
-
)
|
|
|
|
|
165 |
print("#### client: ",client)
|
166 |
|
167 |
client.connect()
|
|
|
151 |
# )
|
152 |
#)
|
153 |
|
154 |
+
#client = weaviate.connect_to_custom(
|
155 |
+
# #http_host="http://huggingface.co/spaces/MVPilgrim/WeaviateDB",
|
156 |
+
# http_host="http://weaviate",
|
157 |
+
# http_port=8080,
|
158 |
+
# http_secure=False,
|
159 |
+
# #grpc_host="huggingface.co",
|
160 |
+
# grpc_host="127.0.0.1",
|
161 |
+
# grpc_port=50051,
|
162 |
+
# grpc_secure=False
|
163 |
+
# #auth_credentials=AuthApiKey(weaviate_key), # `weaviate_key`: your Weaviate API key
|
164 |
+
#)
|
165 |
+
|
166 |
+
client = weaviate.Client("http://localhost:8080");
|
167 |
print("#### client: ",client)
|
168 |
|
169 |
client.connect()
|