{"id":22226167,"url":"https://github.com/guru-1205/eventtextgen","last_synced_at":"2025-10-15T15:34:58.235Z","repository":{"id":214190591,"uuid":"733069760","full_name":"Guru-1205/EventTextGen","owner":"Guru-1205","description":"EventTextGen - Automate image editing and event description refinement effortlessly. the below hosted link has a spin-down time of 1 min ","archived":false,"fork":false,"pushed_at":"2024-06-16T09:02:59.000Z","size":563,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T02:01:55.477Z","etag":null,"topics":["api-integration","creative-tools","event-management","flask-app","google-generative-ai","image-editing","python","text-generation"],"latest_commit_sha":null,"homepage":"https://doc-flask-app14.onrender.com/","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/Guru-1205.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":"2023-12-18T13:50:11.000Z","updated_at":"2024-06-17T06:00:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"083c2586-9249-4f04-b34a-7c491b3b98e8","html_url":"https://github.com/Guru-1205/EventTextGen","commit_stats":null,"previous_names":["guru-1205/render","guru-1205/eventtextgen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Guru-1205/EventTextGen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guru-1205%2FEventTextGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guru-1205%2FEventTextGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guru-1205%2FEventTextGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guru-1205%2FEventTextGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Guru-1205","download_url":"https://codeload.github.com/Guru-1205/EventTextGen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guru-1205%2FEventTextGen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279087764,"owners_count":26100478,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api-integration","creative-tools","event-management","flask-app","google-generative-ai","image-editing","python","text-generation"],"created_at":"2024-12-03T00:23:46.454Z","updated_at":"2025-10-15T15:34:58.214Z","avatar_url":"https://github.com/Guru-1205.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hey everyone! 👋\n\nIt's me, Gc, 🎉\n\nI'm excited to share a new project I've been working on: an **image editing and event description rephrasing web app** using Flask. 🎨 This handy tool lets you upload images, add event names directly on the images, and rephrase event descriptions for better grammar and readability, all in one place! 📸\n\nHere's how it works:\n\n- **Upload Your Images:** Easily upload multiple images. 🖼️\n- **Event Names:** Type in your event names, which will be neatly placed at the top-middle of each image. ✍️\n- **Description Rephrasing:** Enter event descriptions, and watch as they get magically rephrased using Google Gemini, providing you with polished and grammatically correct content. 🔄\n- **Download as `.docx`:** Finally, download a `.docx` file that includes all your edited images and rephrased descriptions, ready to be shared or printed. 📥\n\nBy default, the tool is set up to process images and descriptions for quick and easy use. But don't worry, it's fully customizable! You can adjust the font, text position, or even the integration settings with a bit of code tweaking. 🛠️\n\nIf you encounter any bugs 🐞 or need help, feel free to reach out. I'm here to assist and make your experience as smooth as possible. So go ahead, upload some images, add your events, and get those descriptions rephrased! 🎉\n\n---\n\n# Image Editor and Event Description Rephrasing\n\nThis project is a Flask-based web application that allows users to upload images, input event names and descriptions, and receive a `.docx` file containing edited images and rephrased event descriptions. The edited images display the event names at the top, and the descriptions are rephrased using the Google Gemini text generation model.\n\n## Table of Contents\n\n- [Features](#features)\n- [Demo](#demo)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Dependencies](#dependencies)\n- [Contributing](#contributing)\n- [License](#license)\n- [Acknowledgements](#acknowledgements)\n\n## Features\n\n- **Image Upload:** Users can upload multiple images. 📸\n- **Event Name:** Each image can have an event name placed at the top-middle. ✍️\n- **Description Rephrasing:** Event descriptions are rephrased using Google Gemini for grammatical improvements. 🔄\n- **Output as `.docx`:** Generates a `.docx` file containing the edited images and rephrased descriptions. 📥\n\n## Demo\n\n![Demo GIF](demo.gif)\n\n## Installation\n\n### Prerequisites\n\n- Python 3.x\n- [pip](https://pip.pypa.io/en/stable/installation/)\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/yourusername/image-editor-rephrasing.git\ncd image-editor-rephrasing\n```\n\n### Install Dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### `requirements.txt`\n\nEnsure your `requirements.txt` includes:\n\n```\nflask\npillow\nrequests\npython-docx\ngoogle-generativeai\n```\n\n## Usage\n\n1. **Run the Flask Application:**\n\n   ```bash\n   python app.py\n   ```\n\n2. **Open your Web Browser:**\n\n   Visit `http://127.0.0.1:5000/` to access the application.\n\n3. **Upload Images and Input Event Details:**\n\n   - Upload one or more images. 🖼️\n   - Enter event names and descriptions. ✍️\n   - Click the \"Submit\" button to generate and download the `.docx` file. 📥\n\n## Configuration\n\n### Font Path\n\nUpdate the `FONT_PATH` in `app.py` to point to a valid font file on your system. Example paths:\n\n- Linux: `/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf`\n- Windows: `C:\\Windows\\Fonts\\Arial.ttf`\n- macOS: `/Library/Fonts/Arial.ttf`\n\n### Google Gemini API\n\nTo get an API key for using the Gen AI API for text generation, follow these steps:\n\n### 1. Create a Gen AI Account\n\nIf you haven't already, you'll need to create an account on the Gen AI platform:\n\n- Visit the [Gen AI website](https://gen.ai/).\n- Click on \"Sign Up\" or \"Get Started\" to create your account.\n- Fill in the required information to register.\n\n### 2. Log In to Your Account\n\nOnce you have created your account, log in using your credentials:\n\n- Go to the [Gen AI login page](https://gen.ai/login).\n- Enter your email address and password to log in.\n\n### 3. Navigate to API Access\n\nAfter logging in, navigate to the API access section to generate your API key:\n\n- Look for a section or tab labeled \"API Access,\" \"Developer,\" or \"API Keys.\" This is typically found in your account settings or dashboard.\n- Click on the section related to API access.\n\n### 4. Generate API Key\n\nFollow the steps to generate your API key:\n\n- If available, click on a button like \"Generate API Key\" or \"Create New API Key.\"\n- Some platforms might require you to provide a name or description for the API key to help identify its usage.\n\n### 5. Copy Your API Key\n\nOnce the API key is generated, copy it to your clipboard:\n\n- The API key is usually displayed in a text box or a pop-up window after generation.\n- Make sure to copy the entire API key. It is typically a long alphanumeric string.\n\nEnsure you have access to the Google Gemini text generation model or equivalent. Modify the `rephrase_content` function in `app.py` to integrate with the API, including any required authentication or API keys.\n\n```python\ndef rephrase_content(description):\n    model = genai.GenerativeModel('gemini-pro')\n    response = model.generate_content(description)\n    return response.text\n```\n\n## Dependencies\n\n- **Flask:** Web framework for the application.\n- **Pillow:** Image processing library.\n- **Requests:** Library to handle HTTP requests.\n- **python-docx:** Library to create and manipulate `.docx` files.\n\n## Contributing\n\n1. Fork the repository.\n2. Create your feature branch (`git checkout -b feature/new-feature`).\n3. Commit your changes (`git commit -m 'Add new feature'`).\n4. Push to the branch (`git push origin feature/new-feature`).\n5. Open a pull request.\n\n## Acknowledgements\n\n- [Flask](https://flask.palletsprojects.com/)\n- [Pillow](https://pillow.readthedocs.io/en/stable/)\n- [python-docx](https://python-docx.readthedocs.io/en/latest/)\n- [Google Gemini](https://gemini.openai.com/)\n\n---\n\n### Notes\n\n- Adjust the **Demo GIF** link if you have a demo file or screenshots to showcase.\n- Update the **Clone the Repository** link with your actual GitHub repository URL.\n- Make sure to modify the `rephrase_content` function based on the actual integration you have with Google Gemini.\n\nHappy coding and enjoy the process! 🎨📸\n\nCheers,  \nGc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguru-1205%2Feventtextgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguru-1205%2Feventtextgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguru-1205%2Feventtextgen/lists"}