CoolFace
Apppublic

pszemraj/FLAN-grammar-correction

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
52likes
App README

Robust Grammar Correction with FLAN-T5

A Gradio demo that runs a CoLA-based per-sentence quality gate, sends only the ungrammatical sentences through a FLAN-T5 grammar corrector, and renders the result as a DeepL-style inline diff distinguishing insertions, replacements, and deletions. A plain-text corrected output is also exposed with a copy button.

Models

  • textattack/roberta-base-CoLA — per-sentence quality gate
  • pszemraj/flan-t5-large-grammar-synthesis — grammar corrector

Local development

bash
pip install -r requirements.txt
python app.py

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference