Spaces:
Sleeping
Sleeping
Huseyin Kir commited on
Commit ·
052f966
1
Parent(s): 21e9c76
force_download added
Browse files
app.py
CHANGED
|
@@ -10,7 +10,8 @@ print("⏳ Downloading LanceDB index...")
|
|
| 10 |
index_path = snapshot_download(
|
| 11 |
repo_id="hkir-dev/ndl-core-rag-index",
|
| 12 |
repo_type="dataset",
|
| 13 |
-
allow_patterns="lancedb_search_index/*" # only need this folder, not the FAISS one
|
|
|
|
| 14 |
)
|
| 15 |
|
| 16 |
# 2. Connect DB and load model
|
|
|
|
| 10 |
index_path = snapshot_download(
|
| 11 |
repo_id="hkir-dev/ndl-core-rag-index",
|
| 12 |
repo_type="dataset",
|
| 13 |
+
allow_patterns="lancedb_search_index/*", # only need this folder, not the FAISS one
|
| 14 |
+
force_download=True # ensure we get the latest version
|
| 15 |
)
|
| 16 |
|
| 17 |
# 2. Connect DB and load model
|