{"id":22432691,"url":"https://github.com/1999azzar/prompt-generator","last_synced_at":"2025-10-16T01:31:46.267Z","repository":{"id":213547077,"uuid":"733967628","full_name":"1999AZZAR/prompt-generator","owner":"1999AZZAR","description":"Prompt Generator is a Flask web app employing the Generative AI API. Users create custom or random prompts, exploring creative possibilities. Structured or spontaneous, the tool fosters seamless interaction, making prompt generation intuitive and enjoyable.","archived":false,"fork":false,"pushed_at":"2024-05-11T16:22:34.000Z","size":1132,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-05T22:12:32.730Z","etag":null,"topics":["flask-application","gemini-api","llm","prompt-engineering","prompt-generator","prompt-toolkit","prompts"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/1999AZZAR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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-20T14:46:53.000Z","updated_at":"2024-10-24T23:02:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c91c11d-81b9-4123-9d9f-a7e1db40f410","html_url":"https://github.com/1999AZZAR/prompt-generator","commit_stats":null,"previous_names":["1999azzar/gpt-advace-prompt-generator","1999azzar/prompt-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fprompt-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fprompt-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fprompt-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fprompt-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1999AZZAR","download_url":"https://codeload.github.com/1999AZZAR/prompt-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236664577,"owners_count":19185516,"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":["flask-application","gemini-api","llm","prompt-engineering","prompt-generator","prompt-toolkit","prompts"],"created_at":"2024-12-05T22:12:35.326Z","updated_at":"2025-10-16T01:31:45.582Z","avatar_url":"https://github.com/1999AZZAR.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Propmt generator\n\n### Overview\n\nThis project, named the Prompt Generator, is a Flask web application designed to leverage the Generative AI API. It allows users to interact with a generative model to create structured prompts or explore random prompts. The web interface provides a seamless experience for users to generate creative prompts based on their input or discover unique prompts at random.\n\n### Project Structure\n\n```text\napp\n     - instruction/\n          - file\n     - static/\n          - icon/\n              - file\n          - style/\n               - file\n          - font/\n               - file\n          - script/\n               - file\n     - template/\n          - file\n     - .env\n     - app.py\n```\n\n### Installation\n\nTo run this project locally, follow these steps:\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/1999AZZAR/GPT-Advace-prompt-generator\n   ```\n\n2. Navigate to the project directory.\n\n3. Install the required dependencies:\n\n   ```bash\n   pip install flask python-dotenv google-generativeai\n   ```\n\n### Configuration\n\n1. Obtain a Generative AI API key by following the instructions [here](https://makersuite.google.com/app/apikey).\n\n2. Add your API key to the `.env` file:\n\n   ```bash\n   GENAI_API_KEY=your_api_key_here\n   ```\n\n### Usage\n\n1. Run the Flask application:\n\n   ```bash\n   python app.py\n   ```\n\n2. Open your web browser and go to [http://localhost:5000](http://localhost:5000).\n\n3. **Structured Prompt Generation:** Enter text in the input box on the homepage and click \"Generate\" to receive a structured prompt based on your input.\n\n4. **Random Prompt Exploration:** Click \"Random\" to explore a randomly generated prompt without providing specific input.\n\n### Files\n\n- **app.py:** The main Flask application file. It handles routing and connects the web interface to the generative model.\n\n- **generative_model.py:** This file contains the code for the generative model. It includes functions for generating responses and random prompts.\n\n- **template/generator.html:** The HTML template for the web interface. It includes the structure for user input, displaying responses, and styling.\n\n### Purpose\n\nThe primary purpose of this project is to create a user-friendly interface for interacting with the Generative AI API. It empowers users to effortlessly generate both structured and random prompts, providing a versatile tool for creative exploration.\n\n### Flowchart\n\n```mermaid\ngraph TD\n    A[User] --\u003e|1. Enters text| B[Web Interface]\n    B --\u003e|2. Sends request| C[app.py]\n    C --\u003e|3. Processes input| D[generative_model.py]\n    D --\u003e|4. Generates response| E[Web Interface]\n    E --\u003e|5. Displays response| B\n\n    style A fill:#3D065A,stroke:#3D065A,stroke-width:2px;\n    style B fill:#B51A62,stroke:#B51A62,stroke-width:2px;\n    style C fill:#BF3131,stroke:#BF3131,stroke-width:2px;\n    style D fill:#BF3131,stroke:#BF3131,stroke-width:2px;\n    style E fill:#B51A62,stroke:#B51A62,stroke-width:2px;\n```\n\n### Dependencies\n\n- Flask: [Flask Documentation](https://flask.palletsprojects.com/)\n- python-dotenv: [python-dotenv Documentation](https://pypi.org/project/python-dotenv/)\n- google-generativeai: [Generative AI Documentation](https://ai.google.dev/docs)\n\n### Contributors\n\n- [azzar](https://github.com/1999AZZAR)\n\n### License\n\nThis project is licensed under [License Name]. See the [LICENSE.md](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999azzar%2Fprompt-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1999azzar%2Fprompt-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999azzar%2Fprompt-generator/lists"}