Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def rag(input_text, file):
|
|
92 |
path = os.path.basename(file)
|
93 |
shutil.copyfile(file.name, path)
|
94 |
f = path
|
95 |
-
|
96 |
documents = SimpleDirectoryReader(f).load_data()
|
97 |
index = VectorStoreIndex.from_documents(documents)
|
98 |
# collection.add(
|
|
|
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(
|