Kazel commited on
Commit
fb0021f
·
1 Parent(s): 37195d4
Files changed (2) hide show
  1. app.py +1 -1
  2. milvus_manager.py +1 -1
app.py CHANGED
@@ -144,7 +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("localhost")
148
  path = f"pages/{choice}"
149
  if os.path.exists(path):
150
  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("./milvus_demo.db")
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("localhost")
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("./milvus_demo.db")
17
  self.collection_name = collection_name
18
  self.dim = dim
19