Update app.py
Browse files
app.py
CHANGED
|
@@ -113,6 +113,7 @@ snapshot_download(
|
|
| 113 |
local_dir_use_symlinks=False,
|
| 114 |
)
|
| 115 |
persist_dir = str(LOCAL_BASE / PERSIST_SUBDIR)
|
|
|
|
| 116 |
index = load_index_from_storage(storage_context, embed_model=emb)
|
| 117 |
|
| 118 |
# Datasets & GPU build code remains commented out...
|
|
|
|
| 113 |
local_dir_use_symlinks=False,
|
| 114 |
)
|
| 115 |
persist_dir = str(LOCAL_BASE / PERSIST_SUBDIR)
|
| 116 |
+
storage_context = StorageContext.from_defaults(persist_dir=str(persist_dir))
|
| 117 |
index = load_index_from_storage(storage_context, embed_model=emb)
|
| 118 |
|
| 119 |
# Datasets & GPU build code remains commented out...
|