Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
95 |
-
print("basename="
|
96 |
-
print("filename="
|
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(
|