Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,6 +42,8 @@ def initialize_vector_store_index(data_path, service_context):
|
|
42 |
# Load the index from a file
|
43 |
with open('./index_file.pkl', 'rb') as f:
|
44 |
index = pickle.load(f)
|
|
|
|
|
45 |
return index
|
46 |
|
47 |
def main():
|
|
|
42 |
# Load the index from a file
|
43 |
with open('./index_file.pkl', 'rb') as f:
|
44 |
index = pickle.load(f)
|
45 |
+
index = VectorStoreIndex.from_documents(documents, service_context=service_context)
|
46 |
+
|
47 |
return index
|
48 |
|
49 |
def main():
|