Points: a page to set each measurement of a range valid or not, saved in labeling/points/ (labeling/scripts/points.py), the ground truth of the benchmarks point by point

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-20 08:28:19 +01:00
1 parent 1133a91078
commit dcd255ab1f
6 files changed
+228 -5

No files matched your search

+23
View File
@@ -23,6 +23,7 @@ import analysis
import conversations
import station
import support
import validity
from fastapi.staticfiles import StaticFiles
APP = Path(__file__).resolve().parents[1]
@@ -202,6 +203,28 @@ def support_file(name: str, path: str):
return FileResponse(analysis.file(name, path, support.FOLDER))
# --- the Points page (validity.py): the point labels of labeling/points/, valid or not, set by the user
@app.get("/api/points")
def points_list(station_: str = Query("", alias="station")):
return validity.listing(station_)
@app.post("/api/points")
def points_create(body: dict):
return validity.create(body)
@app.get("/api/points/{name}")
def points_dataset(name: str):
return validity.dataset(name)
@app.put("/api/points/{name}")
def points_mark(name: str, body: dict):
return validity.mark(name, body)
# --- the Conversations page (conversations.py): the LibreDesk conversations, pumped read-only, and their transcripts
CSP = "default-src 'none'; img-src 'self'; style-src 'unsafe-inline'" # a client's mail: no script, no remote image