refactor: services/ → compare/ + drhider/ (разделение Сверки и Хайдера)
Deploy contracts-flask / validate (push) Successful in 0s

This commit is contained in:
2026-06-30 10:08:25 +04:00
parent 5466b6df7f
commit ae64913c00
22 changed files with 40 additions and 20 deletions
+6 -6
View File
@@ -46,9 +46,9 @@ except Exception as _db_err:
# ── Services ──────────────────────────────────────────────────────────────
if DB_OK:
from services.upload import handle_upload
from services.unzip import handle_unzip
from services.process import run_pipeline
from compare.upload import handle_upload
from compare.unzip import handle_unzip
from compare.process import run_pipeline
from llm_prompt import build_prompt
else:
handle_upload = handle_unzip = run_pipeline = None
@@ -247,7 +247,7 @@ class Handler(BaseHTTPRequestHandler):
if not batch_id:
self._json({"ok": False, "error": "batch required"}, 400)
return
from services.grouping import group_documents
from compare.grouping import group_documents
result = group_documents(batch_id)
self._json(result)
@@ -325,7 +325,7 @@ class Handler(BaseHTTPRequestHandler):
if not batch_id:
self._json({"ok": False, "error": "batch_id required"}, 400)
return
from services.grouping import apply_groups
from compare.grouping import apply_groups
result = apply_groups(batch_id, groups)
self._json(result)
@@ -509,7 +509,7 @@ class Handler(BaseHTTPRequestHandler):
# ── /llm-ops (debug) ──────────────────────────────────────────────────
def _handle_llm_ops(self):
from services.llm import call_llm
from compare.llm import call_llm
length = int(self.headers.get("Content-Length", 0))
body = json.loads(self.rfile.read(length))
try: