suriya7 commited on
Commit
65f6708
1 Parent(s): 9835b5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def data_ingestion():
44
  documents = SimpleDirectoryReader(DATA_DIR).load_data()
45
  print(documents)
46
  storage_context = StorageContext.from_defaults()
47
- index = VectorStoreIndex.from_documents(documents)
48
  index.storage_context.persist(persist_dir=PERSIST_DIR)
49
 
50
  def handle_query(query):
 
44
  documents = SimpleDirectoryReader(DATA_DIR).load_data()
45
  print(documents)
46
  storage_context = StorageContext.from_defaults()
47
+ index = VectorStoreIndex.from_documents(documents,show_progress=True)
48
  index.storage_context.persist(persist_dir=PERSIST_DIR)
49
 
50
  def handle_query(query):