Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import datetime
|
|
11 |
|
12 |
# Load titles and texts
|
13 |
title_text_dataset = load_dataset("suanan/BP_CBG_POC", split="train", num_proc=4).select_columns(["url", "title", "text"])
|
14 |
-
|
15 |
# Load the int8 and binary indices. Int8 is loaded as a view to save memory, as we never actually perform search with it.
|
16 |
int8_view = Index.restore("index/BP_CBG_int8_usearch_1m_v2.index", view=True)
|
17 |
binary_index: faiss.IndexBinaryFlat = faiss.read_index_binary("index/BP_CBG_ubinary_faiss_1m_v2.index")
|
|
|
11 |
|
12 |
# Load titles and texts
|
13 |
title_text_dataset = load_dataset("suanan/BP_CBG_POC", split="train", num_proc=4).select_columns(["url", "title", "text"])
|
14 |
+
|
15 |
# Load the int8 and binary indices. Int8 is loaded as a view to save memory, as we never actually perform search with it.
|
16 |
int8_view = Index.restore("index/BP_CBG_int8_usearch_1m_v2.index", view=True)
|
17 |
binary_index: faiss.IndexBinaryFlat = faiss.read_index_binary("index/BP_CBG_ubinary_faiss_1m_v2.index")
|