Update README.md
Browse files
README.md
CHANGED
|
@@ -1,162 +1,176 @@
|
|
| 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 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: REFRAME
|
| 3 |
+
emoji: ✍️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: false
|
| 9 |
+
license: mit
|
| 10 |
+
thumbnail: >-
|
| 11 |
+
https://cdn-uploads.huggingface.co/production/uploads/6866bac745eed950b753b458/_134vdPqMBpIvAhd1guZl.png
|
| 12 |
+
short_description: Refine your tone. Amplify your impact
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# ✍️ Reframe : Elevate your message
|
| 16 |
+
|
| 17 |
+
Reframe is a feedback rewriter assistant and a communication tool that rewrites workplace or professional feedback into more **clear, respectful, and human-friendly tones** — choose from styles like **Empathetic**, **Managerial**, **Formal**, **Friendly**, or **Assertive**.
|
| 18 |
+
Optionally, generate the output in a **polished email format** — great for HRs, team leads, or anyone giving constructive input.
|
| 19 |
+
|
| 20 |
+
Built using [Streamlit](https://streamlit.io/) and free open-source LLMs via [OpenRouter](https://openrouter.ai) — powered by models like **Mistral**, **Mixtral**, and **MythoMax**.
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
## 🧠 What It Does
|
| 24 |
+
|
| 25 |
+
Rewrites raw or harsh feedback messages into:
|
| 26 |
+
|
| 27 |
+
- ✅ Friendly, Empathetic, Managerial, Formal, or Assertive tone
|
| 28 |
+
- ✅ Professional **email format** (optional toggle)
|
| 29 |
+
- ✅ Clear and polished paragraphs (default)
|
| 30 |
+
- ✅ Output in **multiple languages**
|
| 31 |
+
|
| 32 |
+
Built with:
|
| 33 |
+
- 🧠 OpenRouter API (free-tier friendly)
|
| 34 |
+
- ⚡ Automatic model fallback (no dropdowns)
|
| 35 |
+
- ✨ Responsive UI using Streamlit
|
| 36 |
+
- 🔒 No user data stored — safe to use
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
## 📆 Tech Stack
|
| 40 |
+
|
| 41 |
+
- Python 3
|
| 42 |
+
- Streamlit
|
| 43 |
+
- OpenRouter API
|
| 44 |
+
- Mistral 7B / Mixtral / Capybara / Mythomax fallback stack
|
| 45 |
+
- Markdown-based output display
|
| 46 |
+
|
| 47 |
+
## 📷 Preview
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
|
| 51 |
+
### 🎨 Available Tones
|
| 52 |
+
|
| 53 |
+
- 🧭 Managerial
|
| 54 |
+
- 💖 Empathetic
|
| 55 |
+
- 🧾 Formal
|
| 56 |
+
- 😊 Friendly
|
| 57 |
+
- 💼 Assertive
|
| 58 |
+
|
| 59 |
+
### 🛠️ Built With
|
| 60 |
+
|
| 61 |
+
- [Streamlit](https://streamlit.io/)
|
| 62 |
+
- [OpenRouter (Open Source LLM Gateway)](https://openrouter.ai/)
|
| 63 |
+
- Python + Requests
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
## 🛠️ Installation (Run Locally)
|
| 67 |
+
|
| 68 |
+
```bash
|
| 69 |
+
git clone https://github.com/dmmudhan/feedback-rewriter-gpt.git
|
| 70 |
+
cd feedback-rewriter-gpt
|
| 71 |
+
pip install -r requirements.txt
|
| 72 |
+
streamlit run app.py
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## 🔐 Setup Your API Key
|
| 76 |
+
|
| 77 |
+
Create a file: `.streamlit/secrets.toml`
|
| 78 |
+
|
| 79 |
+
```toml
|
| 80 |
+
OPENROUTER_API_KEY = "sk-or-your-api-key-here"
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
Get your free key from: [https://openrouter.ai/keys](https://openrouter.ai/keys)
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
## 🧾 Version History
|
| 87 |
+
|
| 88 |
+
### ✅ v2.0 – Rebrand & Feedback-Powered Communication
|
| 89 |
+
|
| 90 |
+
- 🔄 Rebranded to "Reframe" – A name that reflects empathy, clarity, and intentional communication
|
| 91 |
+
- 💬 Smart feedback transformation – Rewrites tough messages into kind, clear, and professional versions in seconds
|
| 92 |
+
- 🎯 Tone Precision – 5 adaptive tones (Friendly, Firm, Empathetic, Professional, Enthusiastic) to match any workplace context
|
| 93 |
+
- 🌍 Multilingual Support – Write and reframe in 12+ languages with native expressions and cultural nuance
|
| 94 |
+
- 📧 Email Format Mode – Generate ready-to-send emails with proper greeting, body, and closing
|
| 95 |
+
- 🌍 Effortless Sharing – Easily share your refined feedback on Twitter, LinkedIn, and Facebook with a single click.
|
| 96 |
+
- 📊 User History & Export – Track your communication evolution and export your rewrites
|
| 97 |
+
- 🌟 Social Proof Engine – “What Others Say” displays top-rated community feedback with sorting, styling, and fallbacks
|
| 98 |
+
- 🔁 Feedback Loop Built-In – Users can submit feedback that instantly appears in the public feed (CSV + Google Sheets sync)
|
| 99 |
+
- 🛠️ Robust Persistence – Dual storage: Google Sheets (cloud) + feedback_local.csv (fallback) for reliability
|
| 100 |
+
- 🎨 Premium UI Experience – Animated hero header, glowing "Reframe" logo, smooth hover effects, and modern layout
|
| 101 |
+
- ✨ Micro-Interactions – Subtle animations, fade-ins, and card lifts for a polished, high-end feel
|
| 102 |
+
- 🧩 Emotionally Intelligent Prompts – Ensures feedback is always directed to others, not self-apologies
|
| 103 |
+
- 🧑💼 User-Centric UX – Added neutral rating option, “Other” in enhancements, and close button in feedback form
|
| 104 |
+
- 📱 Mobile-Friendly Design – Responsive layout works seamlessly on all devices
|
| 105 |
+
|
| 106 |
+
[🔗 Live App](https://feedback-rewriter-gpt-caht6hciagxykx52hz6xnh.streamlit.app/)
|
| 107 |
+
|
| 108 |
+
### ✅ v1.3 – Email Format Toggle + UX Enhancements
|
| 109 |
+
|
| 110 |
+
- 📧 Added "Format as Email" option for professional email output
|
| 111 |
+
- 📋 Copy-friendly rewritten text using markdown display
|
| 112 |
+
- 🦶 Footer added with creator credit and version info
|
| 113 |
+
- ✨ Preserved clean UX and fallback logic from v1.2
|
| 114 |
+
|
| 115 |
+
[🔗 Live App](https://feedback-rewriter-gpt-ciwy4jjbnswedu3wgppmss.streamlit.app/)
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
### ✅ v1.2 (Latest)
|
| 119 |
+
- ✨ UI cleaned up with better spacing between sections
|
| 120 |
+
- 🧠 Improved system prompt to avoid unwanted email formatting
|
| 121 |
+
- 🔄 Built-in fallback logic for models — no user dropdown required
|
| 122 |
+
- 🎯 Auto-reset session on first app load after deploy (Streamlit Cloud safe)
|
| 123 |
+
- 🚫 Hides technical model failure messages from users
|
| 124 |
+
- 💬 Renamed output section: “Here's Your Refined Feedback”
|
| 125 |
+
- ✅ Clean, production-ready UX — no manual refresh needed by users
|
| 126 |
+
|
| 127 |
+
[🔗 Live App](https://feedback-rewriter-gpt-2epkjjin5zogy4mbdwhded.streamlit.app/) · [📂 Source Code](https://github.com/dmmudhan/feedback-rewriter-gpt)
|
| 128 |
+
|
| 129 |
+
### v1.1 – Tone Detection Update
|
| 130 |
+
- Added tone selection input (e.g., formal, friendly, assertive)
|
| 131 |
+
- Introduced `prompts.py` for modular prompt design
|
| 132 |
+
- Improved user experience with clearer outputs
|
| 133 |
+
- Updated Streamlit deployment
|
| 134 |
+
|
| 135 |
+
[🔗 Live App](https://feedback-rewriter-gpt-caht6hciagxykx52hz6xnh.streamlit.app/)
|
| 136 |
+
|
| 137 |
+
### v1.0 – Initial Version
|
| 138 |
+
- Basic Feedback Rewriting using LLM
|
| 139 |
+
- Accepts raw user feedback and rewrites it professionally
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
## 🤝 Contributing
|
| 143 |
+
|
| 144 |
+
Pull requests are welcome. Feel free to open an issue or suggest improvements!
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
## 🧑💼 Author
|
| 148 |
+
|
| 149 |
+
**Devi Mudhanagiri**
|
| 150 |
+
Prompt Engineering Enthusiast | AI Builder | Freelancing Learner
|
| 151 |
+
[LinkedIn](https://www.linkedin.com/in/devimuthyam/)
|
| 152 |
+
|
| 153 |
+
---
|
| 154 |
+
|
| 155 |
+
## 📝 License
|
| 156 |
+
|
| 157 |
+
MIT License
|
| 158 |
+
Copyright (c) 2025 Devi Mudhanagiri
|
| 159 |
+
|
| 160 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 161 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 162 |
+
in the Software without restriction, including without limitation the rights
|
| 163 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 164 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 165 |
+
furnished to do so, subject to the following conditions:
|
| 166 |
+
|
| 167 |
+
The above copyright notice and this permission notice shall be included in
|
| 168 |
+
all copies or substantial portions of the Software.
|
| 169 |
+
|
| 170 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 171 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 172 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 173 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 174 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 175 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 176 |
+
THE SOFTWARE.
|