Spaces:
Running
Running
| def format_output(result: dict, original: str) -> str: | |
| return f""" | |
| **Original Text** | |
| {original} | |
| **Grammar Corrected** | |
| {result['grammar']} | |
| **Fluent Paraphrase** | |
| {result['paraphrase']} | |
| **Tone Adjusted** | |
| {result['tone']} | |
| **POS Tags** | |
| {result['spacy']['pos_tags']} | |
| **Named Entities** | |
| {result['spacy']['entities']} | |
| **AI Detection** | |
| {result['ai_detection']} | |
| """ | |