Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ def rag(input_text, file):
|
|
| 94 |
print("pathname=", pathname)
|
| 95 |
print("basename=", os.path.basename(file))
|
| 96 |
print("filename=", file.name)
|
| 97 |
-
documents = SimpleDirectoryReader(
|
| 98 |
index = VectorStoreIndex.from_documents(documents)
|
| 99 |
# collection.add(
|
| 100 |
# documents=documents,
|
|
|
|
| 94 |
print("pathname=", pathname)
|
| 95 |
print("basename=", os.path.basename(file))
|
| 96 |
print("filename=", file.name)
|
| 97 |
+
documents = SimpleDirectoryReader(file).load_data()
|
| 98 |
index = VectorStoreIndex.from_documents(documents)
|
| 99 |
# collection.add(
|
| 100 |
# documents=documents,
|