web search done right
added libtorch env stuff to justfile runs
Mikkel Denker1f1dd5f58873
diff --git a/justfile b/justfileindex ba39b75c..38565a0c 100644--- a/justfile+++ b/justfile@@ -1,10 +1,10 @@@profile-indexer:sudo rm -rf data/index- cargo flamegraph --root -- indexer local configs/indexer/profile.toml+ LIBTORCH="libtorch" LD_LIBRARY_PATH="libtorch/lib" DYLD_LIBRARY_PATH="libtorch/lib" cargo flamegraph --root -- indexer local configs/indexer/profile.toml@webgraph:rm -rf data/webgraph- cargo run --release -- webgraph local configs/webgraph/local.toml+ LIBTORCH="libtorch" LD_LIBRARY_PATH="libtorch/lib" DYLD_LIBRARY_PATH="libtorch/lib" cargo run --release -- webgraph local configs/webgraph/local.toml@frontend-rerun *ARGS:cd frontend; npm run build@@ -29,14 +29,14 @@@configure *ARGS:just setup {{ARGS}}- cargo run --release --all-features -- configure {{ARGS}}+ LIBTORCH="libtorch" LD_LIBRARY_PATH="libtorch/lib" DYLD_LIBRARY_PATH="libtorch/lib" cargo run --release --all-features -- configure {{ARGS}}@centrality webgraph output:./scripts/build_harmonic {{webgraph}} {{output}}@entity:rm -rf data/entity- cargo run --release -- indexer entity data/enwiki_subset.xml.bz2 data/entity+ LIBTORCH="libtorch" LD_LIBRARY_PATH="libtorch/lib" DYLD_LIBRARY_PATH="libtorch/lib" cargo run --release -- indexer entity data/enwiki_subset.xml.bz2 data/entity@setup_python_env:rm -rf .venvdiff --git a/scripts/run_frontend.py b/scripts/run_frontend.pyindex f412b79e..27e66b0f 100755--- a/scripts/run_frontend.py+++ b/scripts/run_frontend.py@@ -1,12 +1,18 @@#!.venv/bin/python3import argparseimport subprocess+import os++os.environ["LIBTORCH"] = "libtorch"+os.environ["LD_LIBRARY_PATH"] = "libtorch/lib"+os.environ["DYLD_LIBRARY_PATH"] = "libtorch/lib"parser = argparse.ArgumentParser()parser.add_argument("--release", action="store_true")parser.add_argument("--alice", action="store_true")+args = parser.parse_args()release = ["--release"] if args.release else []