shoom013 commited on
Commit
0b9036a
·
verified ·
1 Parent(s): ca891d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -90,9 +90,10 @@ def rag(input_text, file):
90
  # documents += SimpleDirectoryReader(f).load_data()
91
  # f = file + "*.pdf"
92
  path = os.path.basename(file)
93
- shutil.copyfile(file.name, path)
94
- f = path
95
- print(file.name + ", " + file.orig_name + ", " + f)
 
96
  documents = SimpleDirectoryReader(f).load_data()
97
  index = VectorStoreIndex.from_documents(documents)
98
  # collection.add(
 
90
  # documents += SimpleDirectoryReader(f).load_data()
91
  # f = file + "*.pdf"
92
  path = os.path.basename(file)
93
+ # shutil.copyfile(file.name, path)
94
+ print("basename=" + path)
95
+ print("filename=" + file.name)
96
+ f = file.name
97
  documents = SimpleDirectoryReader(f).load_data()
98
  index = VectorStoreIndex.from_documents(documents)
99
  # collection.add(