File size: 8,436 Bytes
190b55b
 
 
 
 
 
 
 
 
 
 
 
374ad82
 
 
 
 
190b55b
374ad82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24c2dc2
 
 
 
442f628
6990daf
ef3d81e
b33cc51
8e555e7
75e36ee
a9782dc
a831424
463883a
8b2c784
d64aca6
150733c
0d01d99
302ac72
79d7960
7e75176
41e50b6
ccf21df
042a0be
da8dce5
1140dba
9c10ef7
64cd691
cb8e92a
cb6348d
a776cad
5ca6f8a
6f7d551
694636e
8a80b18
f6ba133
4954da6
13da1c2
a285602
17fa9d0
022fbef
a51da35
ead8f12
dad3d72
0ea40db
0304270
bd411b4
e385624
a608bae
76d7308
d88f8d8
c0c0bfa
4152ee9
04b5006
5a5d502
3ccb6f4
72b317d
89e1064
b5598cd
4b43229
4b7daab
225213b
8d4bb99
8b07ab8
0fe6558
7dffaec
1c1a626
62c7d21
f5340a2
df32980
d5ec1bf
5bc9e9f
dcf76e0
50bbe78
972694f
86c6eed
fe43ea8
b741b52
52f288e
3e405d0
24c2dc2
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
---
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](https://img.shields.io/badge/HuggingFace-Spaces-blue?logo=huggingface)](https://huggingface.co/spaces/your-username/text-paraphraser)  
[![Gradio UI](https://img.shields.io/badge/Gradio-5.31.0-green?logo=gradio)]  
[![Model](https://img.shields.io/badge/Model-Vamsi%2FT5_Paraphrase_Paws-orange)](https://huggingface.co/Vamsi/T5_Paraphrase_Paws)  
[![License-MIT](https://img.shields.io/badge/License-MIT-lightgrey)](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