fix(avocet): store original item in _last_action; add requirements.txt
This commit is contained in:
parent
ff27053aa9
commit
816c0e3bb2
2 changed files with 6 additions and 1 deletions
|
|
@ -88,5 +88,5 @@ def post_label(req: LabelRequest):
|
|||
"labeled_at": datetime.now(timezone.utc).isoformat()}
|
||||
_append_jsonl(_score_file(), record)
|
||||
_write_jsonl(_queue_file(), [x for x in items if x["id"] != req.id])
|
||||
_last_action = {"type": "label", "item": record}
|
||||
_last_action = {"type": "label", "item": match, "label": req.label}
|
||||
return {"ok": True}
|
||||
|
|
|
|||
5
requirements.txt
Normal file
5
requirements.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
fastapi>=0.100.0
|
||||
pydantic>=2.0.0
|
||||
uvicorn[standard]>=0.20.0
|
||||
httpx>=0.24.0
|
||||
pytest>=7.0.0
|
||||
Loading…
Reference in a new issue