--- title: AI-Aware Writing Assistant emoji: ✍️ colorFrom: blue colorTo: green sdk: gradio sdk_version: 6.15.2 python_version: '3.10' app_file: app.py pinned: false --- # ✍️ AI-Aware Writing Assistant A hybrid NLP + Transformer writing assistant with a Docs-meets-Grammarly UI. ## Features - **Grammar mode** — spelling correction → regex rules → neural GEC (per-sentence, no truncation) - **Paraphrase mode** — Neutral / Formal / Casual / Student essay / Technical styles with synonym replacement and sentence-length variation - **Both** — grammar first, then paraphrase - **Diff highlighting** — red strikethrough for removals, green underline for additions - **Dark / Light mode** — toggle in header, saved across sessions - **Copy result** — one-click copy of the corrected text - **Text statistics** — word count, Flesch readability, burstiness ## Models | Task | Model | |---|---| | Grammar | `vennify/t5-base-grammar-correction` (fallback: `prithivida/grammar_error_correcter_v1`) | | Paraphrase | `Vamsi/T5_Paraphrase_Paws` | ## Running locally ```bash python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -r requirements.txt python app.py # → http://127.0.0.1:7860 ```