Skip to content

Replace Streamlit UI with Flask web interface#7

Open
fowler128 wants to merge 1 commit into
mainfrom
codex/review-tool-requirements-and-create-specifications
Open

Replace Streamlit UI with Flask web interface#7
fowler128 wants to merge 1 commit into
mainfrom
codex/review-tool-requirements-and-create-specifications

Conversation

@fowler128

Copy link
Copy Markdown
Owner

Motivation

  • Replace the Streamlit-based UI with a lightweight, dependency-friendly web alternative while preserving the same redaction workflow and auditability.
  • Provide a simple HTML form for legal/matter metadata and action-driven outputs so the tool can run without Streamlit in constrained environments.
  • Keep native PDF object-level redaction, OCR fallback, and JSONL audit logging for defensibility and traceability.

Description

  • Replaced the Streamlit app with a Flask application (local-redactor/app.py) that handles uploads, redaction options, OCR/native-PDF toggles, and action-based outputs (preview, report, download_docx, download_pdf).
  • Added an HTML template (local-redactor/templates/index.html) implementing the form for matter ID, reviewer, redaction toggles, PDF options, custom terms, and output buttons.
  • Updated local-redactor/requirements.txt to include Flask and other runtime libraries and updated local-redactor/README.md to document the Flask alternative and run instructions.
  • Preserved the existing redaction engine and audit behavior by calling redact_text_with_report, redact_pdf_native, build_redacted_docx, build_redacted_pdf, and writing JSONL audit events to audit_logs/redaction_events.jsonl.

Testing

  • Ran unit tests with python -m unittest test_redaction_engine.py from local-redactor and all tests passed (OK).
  • Byte-compiled local-redactor/app.py, local-redactor/redaction_engine.py, and local-redactor/test_redaction_engine.py with python -m py_compile and compilation succeeded.
  • Performed a runtime import check for Flask which showed Flask is not installed in this environment, so the web server was validated by static checks only (server launch was not executed).

Codex Task

@vercel

vercel Bot commented Feb 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
claude-code-practice Ready Ready Preview, Comment Feb 21, 2026 3:21am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant