Spaces:
Running
Running
title: CPU Paraphraser Demo | |
emoji: π’ | |
colorFrom: red | |
colorTo: blue | |
sdk: gradio | |
sdk_version: 5.31.0 | |
app_file: app.py | |
pinned: false | |
license: apache-2.0 | |
short_description: 'CPU-only Paraphraser ' | |
# π Text Paraphraser | |
[](https://huggingface.co/spaces/your-username/text-paraphraser) | |
[] | |
[](https://huggingface.co/Vamsi/T5_Paraphrase_Paws) | |
[](LICENSE) | |
--- | |
## π Overview | |
Unlock **creative rewriting** with zero-shot **T5 paraphrasing**. | |
Type any sentence and instantly generate multiple stylistic variationsβ**100% CPU**, no fine-tuning required. | |
> **AI buzzwords:** | |
> β’ Sequence-to-Sequence β’ Zero-Shot Paraphrasing β’ Top-K Sampling β’ Temperature Control β’ Transformer-based NLP β’ Edge Inference β’ Cloud-Native Demo | |
--- | |
## β¨ Key Features | |
| π Feature | π Description | | |
|------------------------------|----------------------------------------------------------------| | |
| **π¬ Diverse Rewrites** | Generate up to 5 alternative phrasings for any input sentence | | |
| **βοΈ Sampling Controls** | Uses `top_k=120`, `top_p=0.95` to balance diversity vs. quality | | |
| **π» CPU-Only Inference** | Runs on free-tier Spaces (2 vCPU / 16βGB RAM) | | |
| **π¨ Interactive UI** | Gradio Blocks with input, slider, button, and result table | | |
| **π§ Zero-Config Deploy** | Commit three filesβSpaces auto-builds & hosts your demo | | |
--- | |
## ποΈ How It Works | |
1. **User Input** β Provide a sentence to paraphrase. | |
2. **T5-Paraphrase Pipeline** β Prepends βparaphrase:β and generates variants via sampling. | |
3. **Result Formatting** β Displays each variant side-by-side in a table. | |
4. **UI Rendering** β Gradio streams the outputs for instant review. | |
--- | |
## π οΈ Local Development | |
```bash | |
git clone https://github.com/your-username/text-paraphraser.git | |
cd text-paraphraser | |
python3 -m venv venv && source venv/bin/activate | |
pip install -r requirements.txt | |
python app.py | |
## Latest Update | |
- Updated Gradio UI to version 5.31.0 for improved performance. - May 29, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. β¨ - August 15, 2025 π | |
- Improved result table formatting in the UI. - August 14, 2025 π | |
- Optimized CPU inference for faster response times. π - August 13, 2025 π | |
- Added support for longer input sentences. π - August 12, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. π - August 11, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. β¨ - August 10, 2025 π | |
- Improved result table formatting in the UI. π - August 09, 2025 π | |
- Optimized CPU inference for faster response times. - August 08, 2025 π | |
- Added support for longer input sentences. βοΈ - August 07, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. π¬ - August 06, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. π - August 05, 2025 π | |
- Improved result table formatting in the UI. - August 04, 2025 π | |
- Optimized CPU inference for faster response times. π¬ - August 03, 2025 π | |
- Added support for longer input sentences. βοΈ - August 02, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. - August 01, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. - July 31, 2025 π | |
- Improved result table formatting in the UI. - July 30, 2025 π | |
- Optimized CPU inference for faster response times. β¨ - July 29, 2025 π | |
- Added support for longer input sentences. - July 28, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. π - July 27, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. β¨ - July 26, 2025 π | |
- Improved result table formatting in the UI. βοΈ - July 25, 2025 π | |
- Optimized CPU inference for faster response times. π¬ - July 24, 2025 π | |
- Added support for longer input sentences. π - July 23, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. - July 22, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. π - July 21, 2025 π | |
- Improved result table formatting in the UI. π¬ - July 20, 2025 π | |
- Optimized CPU inference for faster response times. - July 19, 2025 π | |
- Added support for longer input sentences. π - July 18, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. - July 17, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. - July 16, 2025 π | |
- Improved result table formatting in the UI. - July 15, 2025 π | |
- Optimized CPU inference for faster response times. π - July 11, 2025 π | |
- Added support for longer input sentences. β¨ - July 10, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. - July 09, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. - July 08, 2025 π | |
- Improved result table formatting in the UI. - July 07, 2025 π | |
- Optimized CPU inference for faster response times. βοΈ - July 06, 2025 π | |
- Added support for longer input sentences. π¬ - July 05, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. - July 04, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. π - July 03, 2025 π | |
- Improved result table formatting in the UI. - July 02, 2025 π | |
- Optimized CPU inference for faster response times. β¨ - July 01, 2025 π | |
- Added support for longer input sentences. βοΈ - June 30, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. π - June 29, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. π - June 28, 2025 π | |
- Improved result table formatting in the UI. π¬ - June 27, 2025 π | |
- Optimized CPU inference for faster response times. - June 26, 2025 π | |
- Added support for longer input sentences. π - June 25, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. βοΈ - June 24, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. β¨ - June 23, 2025 π | |
- Improved result table formatting in the UI. - June 22, 2025 π | |
- Optimized CPU inference for faster response times. β¨ - June 21, 2025 π | |
- Added support for longer input sentences. - June 20, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. π¬ - June 19, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. - June 18, 2025 π | |
- Improved result table formatting in the UI. - June 17, 2025 π | |
- Optimized CPU inference for faster response times. - June 16, 2025 π | |
- Added support for longer input sentences. βοΈ - June 15, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. - June 14, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. π - June 13, 2025 π | |
- Improved result table formatting in the UI. - June 12, 2025 π | |
- Optimized CPU inference for faster response times. - June 11, 2025 π | |
- Added support for longer input sentences. π - June 10, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. - June 09, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. π - June 08, 2025 π | |
- Improved result table formatting in the UI. - June 07, 2025 π | |
- Optimized CPU inference for faster response times. π¬ - June 06, 2025 π | |
- Added support for longer input sentences. β¨ - June 05, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. βοΈ - June 04, 2025 π | |
- Updated Gradio UI to version 5.31.0 for improved performance. - June 03, 2025 π | |
- Improved result table formatting in the UI. π - June 02, 2025 π | |
- Optimized CPU inference for faster response times. - June 01, 2025 π | |
- Added support for longer input sentences. - May 31, 2025 π | |
- Enhanced paraphrasing pipeline with new sampling parameters. - May 30, 2025 π | |
**Website**: https://ghostainews.com/ | |
**Discord**: https://discord.gg/BfA23aYz |