|
|
--- |
|
|
license: apache-2.0 |
|
|
pipeline_tag: text-generation |
|
|
--- |
|
|
|
|
|
# PromptPolisher-Pro π¨β¨ |
|
|
|
|
|
Welcome to **PromptPolisher-Pro** - your friendly AI companion for transforming robotic AI-generated prompts into warm, human-like natural language! |
|
|
|
|
|
## Model Overview |
|
|
|
|
|
**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: |
|
|
|
|
|
- π **Tone Switching**: Seamlessly adapt text between professional, casual, friendly, formal, enthusiastic, and empathetic tones |
|
|
- π **Natural Flow**: Transform rigid, structured prompts into flowing, human-like conversations |
|
|
- π― **Context Preservation**: Maintain the original intent while improving readability and warmth |
|
|
- βοΈ **Style Adaptation**: Adjust writing style to match various scenarios and audiences |
|
|
|
|
|
## Key Features |
|
|
|
|
|
β¨ **Multi-Tone Support**: Switch between 6+ distinct communication tones |
|
|
π **Bidirectional Polish**: Both simplify complex prompts and enrich simple ones |
|
|
π¨ **Creative Rewriting**: Add personality and flair while preserving meaning |
|
|
π **Context-Aware**: Understands nuances and adapts accordingly |
|
|
β‘ **Fast Processing**: Optimized for real-time prompt enhancement |
|
|
|
|
|
## Sample Use Cases |
|
|
|
|
|
### Use Case 1: Professional Email Transformation |
|
|
**Input (AI-generated):** |
|
|
``` |
|
|
Schedule meeting. Discuss Q4 metrics. Include stakeholders. Friday 2PM. |
|
|
``` |
|
|
|
|
|
**Output (PromptPolisher-Pro):** |
|
|
``` |
|
|
Hi team! I hope everyone's having a great week. I'd like to schedule a meeting |
|
|
for this Friday at 2 PM to discuss our Q4 metrics together. Please make sure all |
|
|
key stakeholders can join us. Looking forward to seeing everyone there! |
|
|
``` |
|
|
|
|
|
### Use Case 2: Customer Support Message |
|
|
**Input (AI-generated):** |
|
|
``` |
|
|
Order delayed. Shipment issue. Will arrive 3 days late. Apologize. |
|
|
``` |
|
|
|
|
|
**Output (PromptPolisher-Pro):** |
|
|
``` |
|
|
We sincerely apologize for the inconvenience. We've encountered an unexpected |
|
|
shipment delay, and your order will arrive approximately 3 days later than |
|
|
originally estimated. We truly appreciate your patience and understanding during |
|
|
this time, and we're working hard to get your package to you as soon as possible! |
|
|
``` |
|
|
|
|
|
### Use Case 3: Social Media Content |
|
|
**Input (AI-generated):** |
|
|
``` |
|
|
New product launch. Features: faster, cheaper, better. Buy now. |
|
|
``` |
|
|
|
|
|
**Output (PromptPolisher-Pro):** |
|
|
``` |
|
|
π Exciting news! We're thrilled to announce our latest product launch! |
|
|
It's faster than ever, more affordable, and packed with improvements you'll love. |
|
|
Ready to experience the difference? Check it out today! π |
|
|
``` |
|
|
|
|
|
### Use Case 4: Educational Content |
|
|
**Input (AI-generated):** |
|
|
``` |
|
|
Photosynthesis: plants convert light to energy. Uses chlorophyll. Produces oxygen. |
|
|
``` |
|
|
|
|
|
**Output (PromptPolisher-Pro):** |
|
|
``` |
|
|
Let's explore the fascinating process of photosynthesis! Plants have an amazing |
|
|
ability to convert sunlight into energy they can use. They do this with the help |
|
|
of chlorophyll, the green pigment in their leaves. As a wonderful bonus, this |
|
|
process also produces oxygen that we breathe. Nature is incredible! |
|
|
``` |
|
|
|
|
|
### Use Case 5: Casual Conversation Starter |
|
|
**Input (AI-generated):** |
|
|
``` |
|
|
Weather update. Temperature 72F. Sunny. Good day for outdoor activities. |
|
|
``` |
|
|
|
|
|
**Output (PromptPolisher-Pro):** |
|
|
``` |
|
|
Hey! Just wanted to give you a heads up - it's absolutely gorgeous outside today! |
|
|
We're looking at a lovely 72Β°F with plenty of sunshine. Perfect weather for any |
|
|
outdoor plans you might have been thinking about. Enjoy the beautiful day! βοΈ |
|
|
``` |
|
|
|
|
|
## How to Use |
|
|
|
|
|
```python |
|
|
from transformers import AutoTokenizer, AutoModelForCausalLM |
|
|
|
|
|
# Load model and tokenizer |
|
|
tokenizer = AutoTokenizer.from_pretrained("amalsp/PromptPolisher-Pro") |
|
|
model = AutoModelForCausalLM.from_pretrained("amalsp/PromptPolisher-Pro") |
|
|
|
|
|
# Prepare your AI-generated text |
|
|
ai_text = "Meeting scheduled. Bring documents. Important discussion." |
|
|
|
|
|
# Add tone instruction (optional) |
|
|
prompt = f"""Rewrite the following AI-generated text into natural, friendly human language: |
|
|
|
|
|
Text: {ai_text} |
|
|
|
|
|
Rewritten:""" |
|
|
|
|
|
# Generate human-like version |
|
|
inputs = tokenizer(prompt, return_tensors="pt") |
|
|
outputs = model.generate(**inputs, max_length=200, temperature=0.7) |
|
|
result = tokenizer.decode(outputs[0], skip_special_tokens=True) |
|
|
|
|
|
print(result) |
|
|
``` |
|
|
|
|
|
## Supported Tones |
|
|
|
|
|
1. π© **Professional**: Formal business communication |
|
|
2. π **Friendly**: Warm and approachable |
|
|
3. π **Formal**: Academic or official contexts |
|
|
4. π **Enthusiastic**: Energetic and positive |
|
|
5. π€ **Empathetic**: Compassionate and understanding |
|
|
6. π **Casual**: Relaxed and conversational |
|
|
|
|
|
## Model Details |
|
|
|
|
|
- **Model Type**: Text-to-Text Language Model |
|
|
- **Task**: Text Rewriting and Style Transfer |
|
|
- **Language**: English (with potential for multilingual expansion) |
|
|
- **License**: Apache 2.0 |
|
|
- **Training Objective**: Transform AI-generated text into natural human language |
|
|
|
|
|
## Training Data |
|
|
|
|
|
The model was trained on a diverse corpus of: |
|
|
- Professional communications (emails, reports, memos) |
|
|
- Customer service interactions |
|
|
- Social media content |
|
|
- Educational materials |
|
|
- Conversational datasets |
|
|
- Human-edited AI outputs |
|
|
|
|
|
## Limitations |
|
|
|
|
|
- Currently optimized for English language |
|
|
- Works best with text up to 500 tokens |
|
|
- May occasionally over-embellish very simple statements |
|
|
- Performance varies with highly technical jargon |
|
|
|
|
|
## Ethical Considerations |
|
|
|
|
|
This model is designed to enhance communication, not to deceive. Users should: |
|
|
- Clearly indicate when content has been AI-assisted |
|
|
- Review outputs for accuracy and appropriateness |
|
|
- Use responsibly in professional contexts |
|
|
- Respect audience expectations for authenticity |
|
|
|
|
|
## Future Developments |
|
|
|
|
|
π Planned improvements include: |
|
|
- Multi-language support |
|
|
- Industry-specific tone presets |
|
|
- Custom tone training |
|
|
- Real-time API integration |
|
|
- Browser extension for seamless integration |
|
|
|
|
|
## Citation |
|
|
|
|
|
If you use PromptPolisher-Pro in your work, please cite: |
|
|
|
|
|
```bibtex |
|
|
@misc{promptpolisher-pro, |
|
|
author = {amalsp}, |
|
|
title = {PromptPolisher-Pro: Specialized LLM for Human-like Prompt Rewriting}, |
|
|
year = {2025}, |
|
|
publisher = {HuggingFace}, |
|
|
url = {https://huggingface.co/amalsp/PromptPolisher-Pro} |
|
|
} |
|
|
``` |
|
|
|
|
|
## Feedback & Support |
|
|
|
|
|
We'd love to hear from you! Feel free to: |
|
|
- Open an issue for bugs or suggestions |
|
|
- Share your success stories in the Community tab |
|
|
- Contribute improvements via pull requests |
|
|
|
|
|
Happy prompting! Let's make AI communication more human together! πβ¨ |