bhardwaj08sarthak commited on
Commit
ecee2c9
·
verified ·
1 Parent(s): f4ad34a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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...