rohitashva commited on
Commit
90361db
·
verified ·
1 Parent(s): 078dd22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ embeddings_model = HuggingFaceEmbeddings(model_name=config["embedding_model"])
32
  # Create FAISS vector database from CSV
33
  def create_vector_db():
34
  try:
35
- loader = CSVLoader(file_path="disease.csv", source_column="Disease Information")
36
  data = loader.load()
37
  vectordb = FAISS.from_documents(documents=data, embedding=embeddings_model)
38
  vectordb.save_local(config["vector_db_path"])
 
32
  # Create FAISS vector database from CSV
33
  def create_vector_db():
34
  try:
35
+ loader = CSVLoader(file_path="disease.csv", source_column="Disease")
36
  data = loader.load()
37
  vectordb = FAISS.from_documents(documents=data, embedding=embeddings_model)
38
  vectordb.save_local(config["vector_db_path"])