Kazel commited on
Commit
0af2fdf
·
1 Parent(s): 8435355
Files changed (2) hide show
  1. app.py +1 -1
  2. milvus_manager.py +1 -1
app.py CHANGED
@@ -155,7 +155,7 @@ class PDFSearchApp:
155
  #delete file in pages, then use middleware to delete collection
156
  # 1. Create a milvus client
157
 
158
- client = MilvusClient(uri="http://localhost:19530")
159
  #client = MilvusClient(
160
  # uri="http://localhost:19530",
161
  # token="root:Milvus"
 
155
  #delete file in pages, then use middleware to delete collection
156
  # 1. Create a milvus client
157
 
158
+ client = MilvusClient(uri="localhost")
159
  #client = MilvusClient(
160
  # uri="http://localhost:19530",
161
  # token="root:Milvus"
milvus_manager.py CHANGED
@@ -5,7 +5,7 @@ from pymilvus import Collection
5
 
6
  class MilvusManager:
7
  def __init__(self, milvus_uri, collection_name, create_collection, dim=128):
8
- self.client = MilvusClient(uri=milvus_uri)
9
  # self.client = MilvusClient(uri="http://localhost:19530", token="root:Milvus")
10
  self.collection_name = collection_name
11
  self.dim = dim
 
5
 
6
  class MilvusManager:
7
  def __init__(self, milvus_uri, collection_name, create_collection, dim=128):
8
+ self.client = MilvusClient(uri=localhost)
9
  # self.client = MilvusClient(uri="http://localhost:19530", token="root:Milvus")
10
  self.collection_name = collection_name
11
  self.dim = dim