Spaces:
Sleeping
Sleeping
Commit
Β·
7c3ff5e
1
Parent(s):
547fc39
π Add debug logging to LFS download script
Browse files- download_lfs_data.py +17 -0
download_lfs_data.py
CHANGED
|
@@ -42,6 +42,23 @@ def download_lfs_files():
|
|
| 42 |
)
|
| 43 |
|
| 44 |
print("β
LFS files downloaded successfully")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
return True
|
| 46 |
|
| 47 |
except Exception as e:
|
|
|
|
| 42 |
)
|
| 43 |
|
| 44 |
print("β
LFS files downloaded successfully")
|
| 45 |
+
|
| 46 |
+
# Verify download
|
| 47 |
+
if lancedb_path.exists():
|
| 48 |
+
print(f"π lancedb_data exists at: {lancedb_path.absolute()}")
|
| 49 |
+
rajasthan_docs = lancedb_path / "rajasthan_documents.lance"
|
| 50 |
+
if rajasthan_docs.exists():
|
| 51 |
+
version_file = rajasthan_docs / "_versions"
|
| 52 |
+
print(f"π rajasthan_documents.lance exists: {rajasthan_docs.absolute()}")
|
| 53 |
+
print(f"π _versions exists: {version_file.exists()}")
|
| 54 |
+
if version_file.exists():
|
| 55 |
+
version_files = list(version_file.iterdir())
|
| 56 |
+
print(f"π Found {len(version_files)} version files")
|
| 57 |
+
else:
|
| 58 |
+
print(f"β οΈ lancedb_data NOT found at: {lancedb_path.absolute()}")
|
| 59 |
+
print(f"π Current directory: {Path.cwd()}")
|
| 60 |
+
print(f"π Contents: {list(Path.cwd().iterdir())[:10]}")
|
| 61 |
+
|
| 62 |
return True
|
| 63 |
|
| 64 |
except Exception as e:
|