|
|
--- |
|
|
title: Grammar Correction API |
|
|
emoji: 🔧 |
|
|
colorFrom: blue |
|
|
colorTo: purple |
|
|
sdk: gradio |
|
|
sdk_version: 5.49.1 |
|
|
app_file: app.py |
|
|
pinned: false |
|
|
license: apache-2.0 |
|
|
--- |
|
|
|
|
|
# Grammar Correction API |
|
|
|
|
|
A T5-based grammar correction model deployed as a Hugging Face Space. |
|
|
|
|
|
## Usage |
|
|
|
|
|
### Web Interface |
|
|
Use the interactive web interface to correct grammar in real-time. |
|
|
|
|
|
### API Endpoint |
|
|
**POST** `/api/predict` |
|
|
|
|
|
**Request Body:** |
|
|
```json |
|
|
{ |
|
|
"data": ["Your text to correct"] |
|
|
} |
|
|
``` |
|
|
|
|
|
**Response:** |
|
|
```json |
|
|
{ |
|
|
"data": ["Corrected text"] |
|
|
} |
|
|
``` |
|
|
|
|
|
## Model |
|
|
- **Model:** T5-Base fine-tuned for grammar correction |
|
|
- **Repository:** [MdSourav76046/t5-base-grammar-correction](https://huggingface.co/MdSourav76046/t5-base-grammar-correction) |
|
|
- **Task:** Text-to-text generation for grammar correction |