ghostai1's picture
Updated status on July 02, 2025
bd411b4 verified

A newer version of the Gradio SDK is available: 5.35.0

Upgrade
metadata
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

Hugging Face Space
[Gradio UI]
Model
License-MIT


πŸš€ 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

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 πŸ“
- 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