Kazel commited on
Commit
37195d4
·
1 Parent(s): 8889abc
Files changed (2) hide show
  1. app.py +1 -3
  2. milvus_manager.py +1 -1
app.py CHANGED
@@ -144,9 +144,7 @@ class PDFSearchApp:
144
  def delete(state,choice):
145
  #delete file in pages, then use middleware to delete collection
146
  # 1. Create a milvus client
147
- client = MilvusClient(
148
- uri="localhost"
149
- )
150
  path = f"pages/{choice}"
151
  if os.path.exists(path):
152
  shutil.rmtree(path)
 
144
  def delete(state,choice):
145
  #delete file in pages, then use middleware to delete collection
146
  # 1. Create a milvus client
147
+ client = MilvusClient("localhost")
 
 
148
  path = f"pages/{choice}"
149
  if os.path.exists(path):
150
  shutil.rmtree(path)
milvus_manager.py CHANGED
@@ -13,7 +13,7 @@ class MilvusManager:
13
  dotenv_file = dotenv.find_dotenv()
14
  dotenv.load_dotenv(dotenv_file)
15
 
16
- self.client = MilvusClient(uri="http://localhost:19530", token="root:Milvus")
17
  self.collection_name = collection_name
18
  self.dim = dim
19
 
 
13
  dotenv_file = dotenv.find_dotenv()
14
  dotenv.load_dotenv(dotenv_file)
15
 
16
+ self.client = MilvusClient("localhost")
17
  self.collection_name = collection_name
18
  self.dim = dim
19