samwaugh commited on
Commit
6f737b4
·
1 Parent(s): f475695

Change path to data

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. backend/runner/config.py +2 -1
Dockerfile CHANGED
@@ -18,6 +18,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
18
  COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
 
 
 
21
  # Copy repo
22
  COPY . .
23
 
 
18
  COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
+ # Copy data to the expected /data location
22
+ COPY data /data
23
+
24
  # Copy repo
25
  COPY . .
26
 
backend/runner/config.py CHANGED
@@ -7,7 +7,8 @@ import os
7
  from pathlib import Path
8
 
9
  # Data root from environment variable (set by Hugging Face Space)
10
- DATA_ROOT = Path(os.getenv("DATA_ROOT", "/data")).resolve()
 
11
 
12
  # Core data directories
13
  EMBEDDINGS_DIR = DATA_ROOT / "embeddings"
 
7
  from pathlib import Path
8
 
9
  # Data root from environment variable (set by Hugging Face Space)
10
+ # For now, use project-relative path since data is in the repo
11
+ DATA_ROOT = Path(os.getenv("DATA_ROOT", "data")).resolve()
12
 
13
  # Core data directories
14
  EMBEDDINGS_DIR = DATA_ROOT / "embeddings"