Spaces:
Runtime error
Runtime error
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY engine/ ./engine/ | |
| COPY app/ ./app/ | |
| # Static frontend (owned by the frontend agent). | |
| COPY index.html app.js compute.js interpret.js pool.js styles.css ./ | |
| # Word JSONs (owned by the data agent) ship under tools/; main.py reads them at | |
| # runtime from tools/ or repo root, degrading gracefully if absent. | |
| COPY charged_words.json unknown_words.json ./ | |
| COPY tools/ ./tools/ | |
| RUN mkdir -p /app/data | |
| ENV VADUGWI_DATA_DIR=/app/data | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |