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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
pipeline_tag: text-generation
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# PromptPolisher-Pro π¨β¨
|
| 7 |
+
|
| 8 |
+
Welcome to **PromptPolisher-Pro** - your friendly AI companion for transforming robotic AI-generated prompts into warm, human-like natural language!
|
| 9 |
+
|
| 10 |
+
## Model Overview
|
| 11 |
+
|
| 12 |
+
**PromptPolisher-Pro** is a specialized large language model fine-tuned specifically for rewriting AI-generated prompts and text into natural, conversational language. This model excels at:
|
| 13 |
+
|
| 14 |
+
- π **Tone Switching**: Seamlessly adapt text between professional, casual, friendly, formal, enthusiastic, and empathetic tones
|
| 15 |
+
- π **Natural Flow**: Transform rigid, structured prompts into flowing, human-like conversations
|
| 16 |
+
- π― **Context Preservation**: Maintain the original intent while improving readability and warmth
|
| 17 |
+
- βοΈ **Style Adaptation**: Adjust writing style to match various scenarios and audiences
|
| 18 |
+
|
| 19 |
+
## Key Features
|
| 20 |
+
|
| 21 |
+
β¨ **Multi-Tone Support**: Switch between 6+ distinct communication tones
|
| 22 |
+
π **Bidirectional Polish**: Both simplify complex prompts and enrich simple ones
|
| 23 |
+
π¨ **Creative Rewriting**: Add personality and flair while preserving meaning
|
| 24 |
+
π **Context-Aware**: Understands nuances and adapts accordingly
|
| 25 |
+
β‘ **Fast Processing**: Optimized for real-time prompt enhancement
|
| 26 |
+
|
| 27 |
+
## Sample Use Cases
|
| 28 |
+
|
| 29 |
+
### Use Case 1: Professional Email Transformation
|
| 30 |
+
**Input (AI-generated):**
|
| 31 |
+
```
|
| 32 |
+
Schedule meeting. Discuss Q4 metrics. Include stakeholders. Friday 2PM.
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
**Output (PromptPolisher-Pro):**
|
| 36 |
+
```
|
| 37 |
+
Hi team! I hope everyone's having a great week. I'd like to schedule a meeting
|
| 38 |
+
for this Friday at 2 PM to discuss our Q4 metrics together. Please make sure all
|
| 39 |
+
key stakeholders can join us. Looking forward to seeing everyone there!
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
### Use Case 2: Customer Support Message
|
| 43 |
+
**Input (AI-generated):**
|
| 44 |
+
```
|
| 45 |
+
Order delayed. Shipment issue. Will arrive 3 days late. Apologize.
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
**Output (PromptPolisher-Pro):**
|
| 49 |
+
```
|
| 50 |
+
We sincerely apologize for the inconvenience. We've encountered an unexpected
|
| 51 |
+
shipment delay, and your order will arrive approximately 3 days later than
|
| 52 |
+
originally estimated. We truly appreciate your patience and understanding during
|
| 53 |
+
this time, and we're working hard to get your package to you as soon as possible!
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
### Use Case 3: Social Media Content
|
| 57 |
+
**Input (AI-generated):**
|
| 58 |
+
```
|
| 59 |
+
New product launch. Features: faster, cheaper, better. Buy now.
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
**Output (PromptPolisher-Pro):**
|
| 63 |
+
```
|
| 64 |
+
π Exciting news! We're thrilled to announce our latest product launch!
|
| 65 |
+
It's faster than ever, more affordable, and packed with improvements you'll love.
|
| 66 |
+
Ready to experience the difference? Check it out today! π
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
### Use Case 4: Educational Content
|
| 70 |
+
**Input (AI-generated):**
|
| 71 |
+
```
|
| 72 |
+
Photosynthesis: plants convert light to energy. Uses chlorophyll. Produces oxygen.
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
**Output (PromptPolisher-Pro):**
|
| 76 |
+
```
|
| 77 |
+
Let's explore the fascinating process of photosynthesis! Plants have an amazing
|
| 78 |
+
ability to convert sunlight into energy they can use. They do this with the help
|
| 79 |
+
of chlorophyll, the green pigment in their leaves. As a wonderful bonus, this
|
| 80 |
+
process also produces oxygen that we breathe. Nature is incredible!
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
### Use Case 5: Casual Conversation Starter
|
| 84 |
+
**Input (AI-generated):**
|
| 85 |
+
```
|
| 86 |
+
Weather update. Temperature 72F. Sunny. Good day for outdoor activities.
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
**Output (PromptPolisher-Pro):**
|
| 90 |
+
```
|
| 91 |
+
Hey! Just wanted to give you a heads up - it's absolutely gorgeous outside today!
|
| 92 |
+
We're looking at a lovely 72Β°F with plenty of sunshine. Perfect weather for any
|
| 93 |
+
outdoor plans you might have been thinking about. Enjoy the beautiful day! βοΈ
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
## How to Use
|
| 97 |
+
|
| 98 |
+
```python
|
| 99 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 100 |
+
|
| 101 |
+
# Load model and tokenizer
|
| 102 |
+
tokenizer = AutoTokenizer.from_pretrained("amalsp/PromptPolisher-Pro")
|
| 103 |
+
model = AutoModelForCausalLM.from_pretrained("amalsp/PromptPolisher-Pro")
|
| 104 |
+
|
| 105 |
+
# Prepare your AI-generated text
|
| 106 |
+
ai_text = "Meeting scheduled. Bring documents. Important discussion."
|
| 107 |
+
|
| 108 |
+
# Add tone instruction (optional)
|
| 109 |
+
prompt = f"""Rewrite the following AI-generated text into natural, friendly human language:
|
| 110 |
+
|
| 111 |
+
Text: {ai_text}
|
| 112 |
+
|
| 113 |
+
Rewritten:"""
|
| 114 |
+
|
| 115 |
+
# Generate human-like version
|
| 116 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 117 |
+
outputs = model.generate(**inputs, max_length=200, temperature=0.7)
|
| 118 |
+
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 119 |
+
|
| 120 |
+
print(result)
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
## Supported Tones
|
| 124 |
+
|
| 125 |
+
1. π© **Professional**: Formal business communication
|
| 126 |
+
2. π **Friendly**: Warm and approachable
|
| 127 |
+
3. π **Formal**: Academic or official contexts
|
| 128 |
+
4. π **Enthusiastic**: Energetic and positive
|
| 129 |
+
5. π€ **Empathetic**: Compassionate and understanding
|
| 130 |
+
6. π **Casual**: Relaxed and conversational
|
| 131 |
+
|
| 132 |
+
## Model Details
|
| 133 |
+
|
| 134 |
+
- **Model Type**: Text-to-Text Language Model
|
| 135 |
+
- **Task**: Text Rewriting and Style Transfer
|
| 136 |
+
- **Language**: English (with potential for multilingual expansion)
|
| 137 |
+
- **License**: Apache 2.0
|
| 138 |
+
- **Training Objective**: Transform AI-generated text into natural human language
|
| 139 |
+
|
| 140 |
+
## Training Data
|
| 141 |
+
|
| 142 |
+
The model was trained on a diverse corpus of:
|
| 143 |
+
- Professional communications (emails, reports, memos)
|
| 144 |
+
- Customer service interactions
|
| 145 |
+
- Social media content
|
| 146 |
+
- Educational materials
|
| 147 |
+
- Conversational datasets
|
| 148 |
+
- Human-edited AI outputs
|
| 149 |
+
|
| 150 |
+
## Limitations
|
| 151 |
+
|
| 152 |
+
- Currently optimized for English language
|
| 153 |
+
- Works best with text up to 500 tokens
|
| 154 |
+
- May occasionally over-embellish very simple statements
|
| 155 |
+
- Performance varies with highly technical jargon
|
| 156 |
+
|
| 157 |
+
## Ethical Considerations
|
| 158 |
+
|
| 159 |
+
This model is designed to enhance communication, not to deceive. Users should:
|
| 160 |
+
- Clearly indicate when content has been AI-assisted
|
| 161 |
+
- Review outputs for accuracy and appropriateness
|
| 162 |
+
- Use responsibly in professional contexts
|
| 163 |
+
- Respect audience expectations for authenticity
|
| 164 |
+
|
| 165 |
+
## Future Developments
|
| 166 |
+
|
| 167 |
+
π Planned improvements include:
|
| 168 |
+
- Multi-language support
|
| 169 |
+
- Industry-specific tone presets
|
| 170 |
+
- Custom tone training
|
| 171 |
+
- Real-time API integration
|
| 172 |
+
- Browser extension for seamless integration
|
| 173 |
+
|
| 174 |
+
## Citation
|
| 175 |
+
|
| 176 |
+
If you use PromptPolisher-Pro in your work, please cite:
|
| 177 |
+
|
| 178 |
+
```bibtex
|
| 179 |
+
@misc{promptpolisher-pro,
|
| 180 |
+
author = {amalsp},
|
| 181 |
+
title = {PromptPolisher-Pro: Specialized LLM for Human-like Prompt Rewriting},
|
| 182 |
+
year = {2025},
|
| 183 |
+
publisher = {HuggingFace},
|
| 184 |
+
url = {https://huggingface.co/amalsp/PromptPolisher-Pro}
|
| 185 |
+
}
|
| 186 |
+
```
|
| 187 |
+
|
| 188 |
+
## Feedback & Support
|
| 189 |
+
|
| 190 |
+
We'd love to hear from you! Feel free to:
|
| 191 |
+
- Open an issue for bugs or suggestions
|
| 192 |
+
- Share your success stories in the Community tab
|
| 193 |
+
- Contribute improvements via pull requests
|
| 194 |
+
|
| 195 |
+
Happy prompting! Let's make AI communication more human together! πβ¨
|