Spaces:
Sleeping
Sleeping
Huseyin Kir commited on
Commit ·
1f42e44
1
Parent(s): 052f966
file size logging added
Browse filesFiles changed (2)
- app.py+6
- requirements.txt+1-1
12310 unmodified lines141516171819from fastapi import FastAPIimport lancedbfrom sentence_transformers import SentenceTransformer10 unmodified linesforce_download=True # ensure we get the latest version)# 2. Connect DB and load modeldb = lancedb.connect(f"{index_path}/lancedb_search_index")table = db.open_table("ndl_core_datasets")123410 unmodified lines1516171819202122232425import osfrom fastapi import FastAPIimport lancedbfrom sentence_transformers import SentenceTransformer10 unmodified linesforce_download=True # ensure we get the latest version)for root, dirs, files in os.walk(f"{index_path}/lancedb_search_index"):for f in files:p = os.path.join(root, f)print(p, os.path.getsize(p))# 2. Connect DB and load modeldb = lancedb.connect(f"{index_path}/lancedb_search_index")table = db.open_table("ndl_core_datasets")
123456fastapiuvicornlancedbsentence-transformerspandashuggingface-hub123456fastapiuvicornlancedb>=0.26.1sentence-transformerspandashuggingface-hub
app.py+6
requirements.txt+1-1