ghostai1 commited on
Commit
374ad82
·
verified ·
1 Parent(s): 40f0e62

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +45 -1
README.md CHANGED
@@ -10,5 +10,49 @@ pinned: false
10
  license: apache-2.0
11
  short_description: 'CPU-only Paraphraser '
12
  ---
 
 
 
 
 
13
 
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  license: apache-2.0
11
  short_description: 'CPU-only Paraphraser '
12
  ---
13
+ # 🔄 Text Paraphraser
14
+ [![Hugging Face Space](https://img.shields.io/badge/HuggingFace-Spaces-blue?logo=huggingface)](https://huggingface.co/spaces/your-username/text-paraphraser)
15
+ [![Gradio UI](https://img.shields.io/badge/Gradio-5.31.0-green?logo=gradio)]
16
+ [![Model](https://img.shields.io/badge/Model-Vamsi%2FT5_Paraphrase_Paws-orange)](https://huggingface.co/Vamsi/T5_Paraphrase_Paws)
17
+ [![License-MIT](https://img.shields.io/badge/License-MIT-lightgrey)](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