Spaces:
Paused
Paused
Commit
·
fda79ff
1
Parent(s):
ed9e6a6
Updating comments
Browse files
backend/semantic_search.py
CHANGED
|
@@ -12,12 +12,12 @@ import spaces
|
|
| 12 |
logging.basicConfig(level=logging.INFO)
|
| 13 |
logger = logging.getLogger(__name__)
|
| 14 |
|
| 15 |
-
# Start the timer for loading the
|
| 16 |
start_time = time.perf_counter()
|
| 17 |
|
| 18 |
proj_dir = Path(__file__).parents[1]
|
| 19 |
|
| 20 |
-
# Log the time taken to load the
|
| 21 |
db = lancedb.connect(proj_dir / "lancedb")
|
| 22 |
tbl = db.open_table('arabic-wiki')
|
| 23 |
lancedb_loading_time = time.perf_counter() - start_time
|
|
|
|
| 12 |
logging.basicConfig(level=logging.INFO)
|
| 13 |
logger = logging.getLogger(__name__)
|
| 14 |
|
| 15 |
+
# Start the timer for loading the VectorDB
|
| 16 |
start_time = time.perf_counter()
|
| 17 |
|
| 18 |
proj_dir = Path(__file__).parents[1]
|
| 19 |
|
| 20 |
+
# Log the time taken to load the VectorDB
|
| 21 |
db = lancedb.connect(proj_dir / "lancedb")
|
| 22 |
tbl = db.open_table('arabic-wiki')
|
| 23 |
lancedb_loading_time = time.perf_counter() - start_time
|