shoom013 commited on
Commit
83bc461
·
verified ·
1 Parent(s): 5f10bb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -89,9 +89,10 @@ def rag(input_text, file):
89
  # for f in file:
90
  # documents += SimpleDirectoryReader(f).load_data()
91
  # f = file + "*.pdf"
92
- path = "uchat/temp/" + os.path.basename(file) #NB*
93
  shutil.copyfile(file.name, path)
94
  f = path
 
95
  documents = SimpleDirectoryReader(f).load_data()
96
  index = VectorStoreIndex.from_documents(documents)
97
  # collection.add(
 
89
  # for f in 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
+ echo file.name + ", " + fine.orig_name + ", " + f
96
  documents = SimpleDirectoryReader(f).load_data()
97
  index = VectorStoreIndex.from_documents(documents)
98
  # collection.add(