From f1495d07e3817ecffe9266e2ae440e0dba81f266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 18 Jun 2026 09:01:30 +0400 Subject: [PATCH] =?UTF-8?q?v3.2.1:=20/llm=20=E2=80=94=20=D0=BE=D1=82=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BD=D0=B0=D1=8F=20=D1=81=D1=82=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=86=D0=B0,=20/=20=E2=80=94=20=D0=B1=D0=B5=D0=B7?= =?UTF-8?q?=20LLM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/app.py | 3 +- site/templates/llm.html | 530 +++++++++++++++++++++++++++++++++++++ site/templates/upload.html | 163 +----------- 3 files changed, 536 insertions(+), 160 deletions(-) create mode 100644 site/templates/llm.html diff --git a/site/app.py b/site/app.py index 82d9aea..acc2542 100644 --- a/site/app.py +++ b/site/app.py @@ -44,7 +44,8 @@ class ContractsApp: # Парсинг: SSE-поток self.app.add_url_rule("/parse/", "parse", parse) - # LLM: извлечение + сравнение + # LLM: страница + SSE-извлечение + self.app.add_url_rule("/llm", "llm_page", lambda: __import__('flask').render_template('llm.html')) self.app.add_url_rule("/llm/process/", "llm_process", llm_process) # Служебные diff --git a/site/templates/llm.html b/site/templates/llm.html new file mode 100644 index 0000000..bb78256 --- /dev/null +++ b/site/templates/llm.html @@ -0,0 +1,530 @@ + + + + + + Сверка договоров — LLM + + + + + + +
+ Nubes + Сверка договоров — LLM v3.2.0 +
+ +
+
+
+ + Загрузка договоров / допников +
+
+ + +
+ + + + + +
ИмяИзменёнРазмерСтатус
+
+ + + + +
+
+ + +
+ + + + + + diff --git a/site/templates/upload.html b/site/templates/upload.html index 02a6171..eac9241 100644 --- a/site/templates/upload.html +++ b/site/templates/upload.html @@ -54,19 +54,12 @@ .modal-body .kv .k { color: var(--muted); width: 110px; flex-shrink: 0; } .modal-body .kv .v { word-break: break-all; } .modal-body pre { background: var(--brand-grey-light); padding: 10px; border-radius: 6px; font-size: 12px; max-height: 200px; overflow-y: auto; white-space: pre-wrap; margin-top: 4px; } - .diff-added { background: rgba(34,197,94,.1); } - .diff-deleted { background: rgba(239,68,68,.1); text-decoration: line-through; } - .diff-changed { background: rgba(234,179,8,.1); } - .diff-added td { color: var(--green); } - .diff-deleted td { color: var(--destructive); } - .diff-field-old { color: var(--destructive); text-decoration: line-through; font-size: 11px; } - .diff-field-new { color: var(--green); font-weight: 600; }
Nubes - Сверка договоров v3.2.0 + Сверка договоров v3.0.1
@@ -90,21 +83,8 @@ - -
- - -