ghostai1's picture
Update README.md
374ad82 verified
|
raw
history blame
2.38 kB
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