{"id":27012066,"url":"https://github.com/natgluons/ai-tone-generator","last_synced_at":"2025-04-04T11:47:43.257Z","repository":{"id":284188440,"uuid":"954100996","full_name":"natgluons/AI-Tone-Generator","owner":"natgluons","description":"An AI-powered tone generator that transforms text into various tones using the Deepseek V3 model via OpenRouter, deployed to Hugging Face Spaces","archived":false,"fork":false,"pushed_at":"2025-03-24T15:44:15.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T16:37:43.736Z","etag":null,"topics":["chatbot","chatbot-application","deepseek-v3","gradio","huggingface","huggingface-spaces","language-learning-model","llm","openrouter","openrouter-api","text-generator","tonegenerator"],"latest_commit_sha":null,"homepage":"https://huggingface.co/spaces/natgluons/tone_generator","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natgluons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-24T15:05:45.000Z","updated_at":"2025-03-24T15:49:10.000Z","dependencies_parsed_at":"2025-03-24T16:47:56.053Z","dependency_job_id":null,"html_url":"https://github.com/natgluons/AI-Tone-Generator","commit_stats":null,"previous_names":["natgluons/ai-tone-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natgluons%2FAI-Tone-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natgluons%2FAI-Tone-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natgluons%2FAI-Tone-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natgluons%2FAI-Tone-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natgluons","download_url":"https://codeload.github.com/natgluons/AI-Tone-Generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174402,"owners_count":20896074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","chatbot-application","deepseek-v3","gradio","huggingface","huggingface-spaces","language-learning-model","llm","openrouter","openrouter-api","text-generator","tonegenerator"],"created_at":"2025-04-04T11:47:42.643Z","updated_at":"2025-04-04T11:47:43.246Z","avatar_url":"https://github.com/natgluons.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ✨ Ever overthink a simple message?\n### You know... rereading it five times, wondering:\n\u003e “Does this sound too cold?”\n\n\u003e “Too formal?”\n\n\u003e “Too *me*?”\n \nWelcome to the social anxiety zone. 😬\n\nWhether you're texting a crush, replying to your boss, or just rewording that \"Hey, just checking in\" for the seventh time —\n🎉 Meet your new messaging buddy: **the AI Tone Generator**.\n\nIt tweaks your words, smooths your vibe, and makes sure your tone hits just right — every time.\n\n## **Stop second-guessing. Start sounding *exactly* how you want!** 💬💫\n\n![image](https://github.com/user-attachments/assets/86758563-55d7-4491-9201-f5524e6461e8)\n\n## Try It Out!\n\n### [Try this AI tone generator RIGHT HERE! 🎭](https://huggingface.co/spaces/natgluons/tone_generator)\n\n## Snapshots of the app in action\n### Be friendly! :)\n![image](https://github.com/user-attachments/assets/98135d41-1eb4-4170-a382-ddd0d0d9e998)\n### Be casual~\n![image](https://github.com/user-attachments/assets/d4d6988a-0978-468c-aa7b-fae0e7ac87aa)\n### Be... playful?\n![image](https://github.com/user-attachments/assets/33f7ba30-26ce-43bb-9155-80948e96635e)\n### Or choose to be whatever you want!\n![image](https://github.com/user-attachments/assets/0ad1271d-67a6-4ce0-ac38-e2d939d52816)\n### Example prompt provided\n![image](https://github.com/user-attachments/assets/fad26112-9f76-44bb-a6f6-a0f7dfcdf6b8)\n\n### Have fun! ✨\n\n\n---\n\n\n# OpenRouter Chatbot Implementations\n#### title: tone_generator | app_file: openrouter_web_tonegenerator.py | sdk: gradio | sdk_version: 5.22.0\n\nThis repository contains three implementations of chatbots using the OpenRouter API:\n\n1. **Command-line Chatbot** (`openrouter_chatbot.py`)\n2. **Web Interface Chatbot** (`openrouter_web_chatbot.py`)\n3. **Web Interface AI Tone Generator** (`openrouter_web_tonegenerator.py`)\n\nAll implementations use the Deepseek V3 model through OpenRouter and include **rate limiting** to keep things fun and **fair**! (though let's normalize not hogging random people's API, please! We're all broke).\n\n## Setup\n\n1. **Install dependencies**:\n   ```\n   pip install -r requirements.txt\n   ```\n\n2. **Set up environment variables**:\n   - Create a `.env` file in the project root with:\n   ```\n   OPENROUTER_API_KEY=your_api_key_here\n   ```\n   - Alternatively, set this environment variable through your system's settings\n\n## Usage\n\n### Command-line Chatbot\n\nRun the command-line interface:\n```\npython openrouter_chatbot.py\n```\n\nType your messages and press Enter. Type 'exit' to quit.\n\n### Web Interface Chatbot\n\nRun the web interface:\n```\npython openrouter_web_chatbot.py\n```\n\n### Web Interface AI Tone Generator\n\nRun the web interface:\n```\npython openrouter_web_tonegenerator.py\n```\n\n\nThis will start a local Gradio web server. Open the displayed URL in your browser to interact with the chatbot.\n\n## Features\n\n- **Rate Limiting**: Both implementations limit requests to 10 per minute and 100 per day by default\n- **Response Cleanup**: Formats AI responses to be well-structured and complete\n- **Chat History**: The web interface retains conversation history\n- **Error Handling**: Graceful handling of API errors and timeouts\n\n## Configuration\n\nYou can adjust the following settings in the code:\n- `MAX_REQUESTS_PER_MINUTE`: Change the rate limit\n- `MODEL`: Select a different model from OpenRouter\n- `temperature` and other generation parameters in the API request\n\n## License\n\nMIT \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatgluons%2Fai-tone-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatgluons%2Fai-tone-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatgluons%2Fai-tone-generator/lists"}