pszemraj/FLAN-grammar-correction
52
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 gatepszemraj/flan-t5-large-grammar-synthesis— grammar corrector
Local development
pip install -r requirements.txt
python app.pyCheck out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
