Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -10,5 +10,49 @@ pinned: false
|
|
10 |
license: apache-2.0
|
11 |
short_description: 'CPU-only Paraphraser '
|
12 |
---
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
license: apache-2.0
|
11 |
short_description: 'CPU-only Paraphraser '
|
12 |
---
|
13 |
+
# 🔄 Text Paraphraser
|
14 |
+
[](https://huggingface.co/spaces/your-username/text-paraphraser)
|
15 |
+
[]
|
16 |
+
[](https://huggingface.co/Vamsi/T5_Paraphrase_Paws)
|
17 |
+
[](LICENSE)
|
18 |
|
19 |
+
---
|
20 |
+
|
21 |
+
## 🚀 Overview
|
22 |
+
Unlock **creative rewriting** with zero-shot **T5 paraphrasing**.
|
23 |
+
Type any sentence and instantly generate multiple stylistic variations—**100% CPU**, no fine-tuning required.
|
24 |
+
|
25 |
+
> **AI buzzwords:**
|
26 |
+
> • Sequence-to-Sequence • Zero-Shot Paraphrasing • Top-K Sampling • Temperature Control • Transformer-based NLP • Edge Inference • Cloud-Native Demo
|
27 |
+
|
28 |
+
---
|
29 |
+
|
30 |
+
## ✨ Key Features
|
31 |
+
|
32 |
+
| 🔑 Feature | 🔍 Description |
|
33 |
+
|------------------------------|----------------------------------------------------------------|
|
34 |
+
| **💬 Diverse Rewrites** | Generate up to 5 alternative phrasings for any input sentence |
|
35 |
+
| **⚙️ Sampling Controls** | Uses `top_k=120`, `top_p=0.95` to balance diversity vs. quality |
|
36 |
+
| **💻 CPU-Only Inference** | Runs on free-tier Spaces (2 vCPU / 16 GB RAM) |
|
37 |
+
| **🎨 Interactive UI** | Gradio Blocks with input, slider, button, and result table |
|
38 |
+
| **🔧 Zero-Config Deploy** | Commit three files—Spaces auto-builds & hosts your demo |
|
39 |
+
|
40 |
+
---
|
41 |
+
|
42 |
+
## 🏗️ How It Works
|
43 |
+
|
44 |
+
1. **User Input** – Provide a sentence to paraphrase.
|
45 |
+
2. **T5-Paraphrase Pipeline** – Prepends “paraphrase:” and generates variants via sampling.
|
46 |
+
3. **Result Formatting** – Displays each variant side-by-side in a table.
|
47 |
+
4. **UI Rendering** – Gradio streams the outputs for instant review.
|
48 |
+
|
49 |
+
---
|
50 |
+
|
51 |
+
## 🛠️ Local Development
|
52 |
+
|
53 |
+
```bash
|
54 |
+
git clone https://github.com/your-username/text-paraphraser.git
|
55 |
+
cd text-paraphraser
|
56 |
+
python3 -m venv venv && source venv/bin/activate
|
57 |
+
pip install -r requirements.txt
|
58 |
+
python app.py
|