Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Put the model in a better place

Daoud Clarke04bcf5b851a1
diff --git a/Dockerfile b/Dockerfile
index 2f52bbb..d970ca5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -60,11 +60,6 @@ RUN apt-get update && apt-get install -y postgresql-client && rm -rf /var/lib/ap
# Copy only the required /venv directory from the builder image that contains mwmbl and its dependencies
COPY --from=builder /venv /venv
-# Copy devdata so the installed package can resolve RUST_MODEL_PATH correctly
-# (settings_common.py resolves RUST_MODEL_PATH relative to the installed package location,
-# which points to /venv/lib/python3.11/site-packages/devdata/...)
-COPY devdata /venv/lib/python3.11/site-packages/devdata
-
# Copy the front end build
COPY --from=front-end /front-end/dist /front-end-build
diff --git a/mwmbl/resources/model.xgb b/mwmbl/resources/model.xgb
new file mode 100644
index 0000000..bf22e9e
Binary files /dev/null and b/mwmbl/resources/model.xgb differ
diff --git a/mwmbl/settings_common.py b/mwmbl/settings_common.py
index ca4ca9e..b5b5b1d 100644
--- a/mwmbl/settings_common.py
+++ b/mwmbl/settings_common.py
@@ -230,4 +230,4 @@ INTERNAL_IPS = [
"127.0.0.1",
]
-RUST_MODEL_PATH = Path(__file__).parent.parent / 'devdata' / 'rankeval-2026-04' / "model.xgb"
+RUST_MODEL_PATH = Path(__file__).parent / 'resources' / "model.xgb"