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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -91,9 +91,9 @@ def rag(input_text, file):
91
  # f = file + "*.pdf"
92
  pathname = os.path.dirname
93
  # shutil.copyfile(file.name, path)
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(
 
91
  # f = file + "*.pdf"
92
  pathname = os.path.dirname
93
  # shutil.copyfile(file.name, path)
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(