brurei commited on
Commit
88d1499
1 Parent(s): 465135d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -20,8 +20,7 @@ def construct_index(directory_path):
20
 
21
  documents = SimpleDirectoryReader(directory_path).load_data()
22
 
23
- index = GPTSimpleVectorIndex(documents, llm_predictor=llm_predictor, prompt_helper=prompt_helper)
24
-
25
  index.save_to_disk('index.json')
26
 
27
  return index
 
20
 
21
  documents = SimpleDirectoryReader(directory_path).load_data()
22
 
23
+ index = GPTSimpleVectorIndex.from_documents(documents)
 
24
  index.save_to_disk('index.json')
25
 
26
  return index