{"id":23879195,"url":"https://github.com/tsembp/recipe-generator","last_synced_at":"2026-07-15T02:31:48.933Z","repository":{"id":269617282,"uuid":"908000727","full_name":"tsembp/Recipe-Generator","owner":"tsembp","description":"A recipe generator application that suggests recipes using mock data or AI, with a simple GUI for inputting ingredients and displaying results.","archived":false,"fork":false,"pushed_at":"2024-12-24T20:56:59.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T23:17:14.852Z","etag":null,"topics":["ai","python","recipe-generator"],"latest_commit_sha":null,"homepage":"","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/tsembp.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":"2024-12-24T20:39:20.000Z","updated_at":"2024-12-24T20:57:03.000Z","dependencies_parsed_at":"2024-12-25T02:01:27.793Z","dependency_job_id":null,"html_url":"https://github.com/tsembp/Recipe-Generator","commit_stats":null,"previous_names":["tsembp/recipe-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsembp/Recipe-Generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsembp%2FRecipe-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsembp%2FRecipe-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsembp%2FRecipe-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsembp%2FRecipe-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsembp","download_url":"https://codeload.github.com/tsembp/Recipe-Generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsembp%2FRecipe-Generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35488230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"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":["ai","python","recipe-generator"],"created_at":"2025-01-03T22:34:24.607Z","updated_at":"2026-07-15T02:31:48.918Z","avatar_url":"https://github.com/tsembp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 👨‍🍳 Recipe Generator [under construction]\n\nA Python-based Recipe Generator that suggests recipes based on the ingredients you have. The project uses OpenAI's GPT model for AI-based recipe generation and a mock recipe generator for a simpler approach.\n\n## 🛠️ Features\n- Generate recipes using AI with OpenAI's GPT model.\n- Mock recipe generator for a simpler, predefined recipe suggestion.\n- Interactive command-line interface (CLI) for users to input ingredients.\n\n## 📩 Installation\n\n### Prerequisites\n- Python 3.7 or higher\n- Install required Python packages using pip.\n\n### Steps to Install:\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-username/Recipe-Generator.git\n   cd Recipe-Generator\n   ```\n\n2. Install the required dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n### Requirements\n- `openai` library (for AI-based recipe generation)\n- `torch` library (installed if necessary)\n  \nYou can install the requirements with the following command:\n```bash\npip install openai torch\n```\n\n### API Key\nIf you're using the AI mode, you'll need to set up your OpenAI API key:\n1. Create an account on [OpenAI](https://platform.openai.com/signup).\n2. Create a new API key from the OpenAI dashboard.\n3. Set the key in the `ai_recipe.py` file:\n   ```python\n   openai.api_key = \"api-key-here\"\n   ```\n\n## How to Use\n1. Run the script:\n   ```bash\n   python main.py\n   ```\n\n2. Choose the mode (mock/ai).\n3. Enter the ingredients you have, separated by commas (e.g., bread, cheese, tomato).\n\n### Modes:\n- **mock**: Generates a simple predefined recipe based on the ingredients.\n- **ai**: Uses OpenAI's GPT model to generate a more creative recipe.\n\n\u003c!-- ## Example Output\n\n```bash\nWelcome to the Recipe Generator!\nChoose mode (mock/ai): ai\nEnter ingredients you have, separated by commas: bread, cheese, garlic, lettuce\n\nGenerated Recipe:\n\nMakes 8 servings.\n\nIngredients:\n- 2 cups chopped fresh spinach\n- 1 tsp cumin\n- 1 tsp curry powder\n...\n``` --\u003e\n\n\u003c!-- ## License\nThis project is open-source and available under the MIT License. --\u003e\n\n## Contributing\nFeel free to fork this repository, submit issues, and make pull requests. Contributions are welcome!\n\n## Acknowledgements\n- OpenAI for providing the GPT models to generate creative recipes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsembp%2Frecipe-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsembp%2Frecipe-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsembp%2Frecipe-generator/lists"}