BroBro87 commited on
Commit
d344e14
β€’
1 Parent(s): 5796622

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -43,7 +43,8 @@ def configure_service_context(llm, embed_model):
43
  def initialize_vector_store_index(data_path, service_context):
44
  documents = SimpleDirectoryReader(data_path).load_data()
45
  import pickle
46
-
 
47
  # Load the index from a file
48
  with open('./index_file.pkl', 'rb') as f:
49
  index = pickle.load(f)
 
43
  def initialize_vector_store_index(data_path, service_context):
44
  documents = SimpleDirectoryReader(data_path).load_data()
45
  import pickle
46
+ loader = PyPDFLoader("./Cloudflare.pdf")
47
+ pages = loader.load_and_split()
48
  # Load the index from a file
49
  with open('./index_file.pkl', 'rb') as f:
50
  index = pickle.load(f)