Commit ·
88bb334
1
Parent(s): e4154b5
Update dataset JSONL with corrected prompt B summaries
Browse files- Dockerfile +1 -1
- README.md +2 -2
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -6,7 +6,7 @@ RUN useradd -m -u 1000 user
|
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
ENV PATH="/app/.venv/bin:$PATH"
|
| 9 |
-
ENV DATASET_PATH="/data/2026-04-
|
| 10 |
ENV DB_PATH="/data/annotations.db"
|
| 11 |
|
| 12 |
# Copy dependency files first (better layer caching)
|
|
|
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
ENV PATH="/app/.venv/bin:$PATH"
|
| 9 |
+
ENV DATASET_PATH="/data/2026-04-23_prompt_evaluation_dataset.jsonl"
|
| 10 |
ENV DB_PATH="/data/annotations.db"
|
| 11 |
|
| 12 |
# Copy dependency files first (better layer caching)
|
README.md
CHANGED
|
@@ -34,7 +34,7 @@ At runtime, the app reads:
|
|
| 34 |
|
| 35 |
By default, the Docker image is configured for Hugging Face persistent storage mounted at `/data`:
|
| 36 |
|
| 37 |
-
- dataset: `/data/2026-04-
|
| 38 |
- annotations DB: `/data/annotations.db`
|
| 39 |
|
| 40 |
## Deploying on Hugging Face Spaces
|
|
@@ -56,7 +56,7 @@ The app can also run locally. In local development, it defaults to the dataset f
|
|
| 56 |
Example environment variables:
|
| 57 |
|
| 58 |
```powershell
|
| 59 |
-
$env:DATASET_PATH = "2026-04-
|
| 60 |
$env:DB_PATH = "annotations.db"
|
| 61 |
$env:APP_PASSWORD = "your-password"
|
| 62 |
python app.py
|
|
|
|
| 34 |
|
| 35 |
By default, the Docker image is configured for Hugging Face persistent storage mounted at `/data`:
|
| 36 |
|
| 37 |
+
- dataset: `/data/2026-04-23_prompt_evaluation_dataset.jsonl`
|
| 38 |
- annotations DB: `/data/annotations.db`
|
| 39 |
|
| 40 |
## Deploying on Hugging Face Spaces
|
|
|
|
| 56 |
Example environment variables:
|
| 57 |
|
| 58 |
```powershell
|
| 59 |
+
$env:DATASET_PATH = "2026-04-23_prompt_evaluation_dataset.jsonl"
|
| 60 |
$env:DB_PATH = "annotations.db"
|
| 61 |
$env:APP_PASSWORD = "your-password"
|
| 62 |
python app.py
|
app.py
CHANGED
|
@@ -19,7 +19,7 @@ from pathlib import Path
|
|
| 19 |
|
| 20 |
from flask import Flask, Response, jsonify, request, send_file
|
| 21 |
|
| 22 |
-
DATASET_PATH = Path(os.environ.get("DATASET_PATH", "2026-04-
|
| 23 |
DB_PATH = Path(os.environ.get("DB_PATH", "/data/annotations.db"))
|
| 24 |
|
| 25 |
ANNOTATION_FIELDS = (
|
|
|
|
| 19 |
|
| 20 |
from flask import Flask, Response, jsonify, request, send_file
|
| 21 |
|
| 22 |
+
DATASET_PATH = Path(os.environ.get("DATASET_PATH", "2026-04-23_prompt_evaluation_dataset.jsonl"))
|
| 23 |
DB_PATH = Path(os.environ.get("DB_PATH", "/data/annotations.db"))
|
| 24 |
|
| 25 |
ANNOTATION_FIELDS = (
|