shoom013 commited on
Commit
4ac8a4e
·
verified ·
1 Parent(s): 84416f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ def rag(input_text, file):
94
  print("pathname=", pathname)
95
  print("basename=", os.path.basename(file))
96
  print("filename=", file.name)
97
- documents = SimpleDirectoryReader(pathname).load_data()
98
  index = VectorStoreIndex.from_documents(documents)
99
  # collection.add(
100
  # documents=documents,
 
94
  print("pathname=", pathname)
95
  print("basename=", os.path.basename(file))
96
  print("filename=", file.name)
97
+ documents = SimpleDirectoryReader(file).load_data()
98
  index = VectorStoreIndex.from_documents(documents)
99
  # collection.add(
100
  # documents=documents,