Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,6 +43,7 @@ def initialize_index(index_name, documents_folder):
|
|
43 |
documents = SimpleDirectoryReader(documents_folder).load_data()
|
44 |
index = GPTSimpleVectorIndex.from_documents(documents, service_context=service_context)
|
45 |
index.save_to_disk(index_name)
|
|
|
46 |
index.save_to_disk(DATA_FILE)
|
47 |
|
48 |
return index
|
|
|
43 |
documents = SimpleDirectoryReader(documents_folder).load_data()
|
44 |
index = GPTSimpleVectorIndex.from_documents(documents, service_context=service_context)
|
45 |
index.save_to_disk(index_name)
|
46 |
+
print(DATA_FILE)
|
47 |
index.save_to_disk(DATA_FILE)
|
48 |
|
49 |
return index
|