Spaces:
Running
Running
Update user_guide_sync.py
Browse files- user_guide_sync.py +1 -1
user_guide_sync.py
CHANGED
@@ -77,7 +77,7 @@ def update_user_guide():
|
|
77 |
# index = load_index_from_storage(storage_context=storage_context)
|
78 |
# print("loaded")
|
79 |
# except:
|
80 |
-
documents = SimpleDirectoryReader("
|
81 |
index = VectorStoreIndex.from_documents(documents)
|
82 |
index.storage_context.persist("llama_index")
|
83 |
print("index created")
|
|
|
77 |
# index = load_index_from_storage(storage_context=storage_context)
|
78 |
# print("loaded")
|
79 |
# except:
|
80 |
+
documents = SimpleDirectoryReader("user_guide").load_data()
|
81 |
index = VectorStoreIndex.from_documents(documents)
|
82 |
index.storage_context.persist("llama_index")
|
83 |
print("index created")
|