{"id":27926044,"url":"https://github.com/peterdev123/food_detective","last_synced_at":"2026-05-07T11:31:37.166Z","repository":{"id":290385697,"uuid":"974263208","full_name":"peterdev123/food_detective","owner":"peterdev123","description":"Food Classification with Pretrained Model using Resnet50","archived":false,"fork":false,"pushed_at":"2025-05-06T16:12:34.000Z","size":107943,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T00:51:40.473Z","etag":null,"topics":["ai","flask","machine-learning","python"],"latest_commit_sha":null,"homepage":"https://food-detective.onrender.com","language":"Jupyter Notebook","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/peterdev123.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,"zenodo":null}},"created_at":"2025-04-28T13:59:40.000Z","updated_at":"2025-05-06T16:12:37.000Z","dependencies_parsed_at":"2025-05-07T01:01:38.292Z","dependency_job_id":null,"html_url":"https://github.com/peterdev123/food_detective","commit_stats":null,"previous_names":["peterdev123/food_detective"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterdev123/food_detective","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdev123%2Ffood_detective","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdev123%2Ffood_detective/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdev123%2Ffood_detective/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdev123%2Ffood_detective/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterdev123","download_url":"https://codeload.github.com/peterdev123/food_detective/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdev123%2Ffood_detective/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32735084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","flask","machine-learning","python"],"created_at":"2025-05-07T00:51:13.448Z","updated_at":"2026-05-07T11:31:37.150Z","avatar_url":"https://github.com/peterdev123.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🍔 Food Detective 3000 🍕\n\nA fun, web-based AI app that guesses what kind of food is in your image! Powered by a deep learning model trained on 34 food categories, this project lets users paste an image URL and get an instant, goofy prediction.\n\n---\n\n## 🥗 Features\n\n- **Image URL Input:** Paste any food image URL and get a prediction.\n- **34 Food Categories:** From pizza to dal makhani, burgers to samosas.\n- **Goofy, User-Friendly UI:** Playful design with emojis and a fun background.\n- **Fast AI Predictions:** Powered by a PyTorch ResNet50 model.\n- **Runs Locally or Online:** Deployable on your own machine or cloud platforms.\n\n---\n\n## 🛠️ Tech Stack\n\n- **Backend:** Python, Flask, PyTorch, TorchVision\n- **Frontend:** HTML, Tailwind CSS, Jinja2 templates\n- **Model:** ResNet50, fine-tuned on the [food_images](https://huggingface.co/datasets/AkshilShah21/food_images) dataset\n\n---\n\n## 📦 Installation\n\n1. **Clone the repository:**\n    ```\n    git clone https://github.com/yourusername/food-detective-3000.git\n    cd food-detective-3000\n    ```\n\n2. **Install dependencies:**\n    ```\n    pip install -r requirements.txt\n    ```\n\n3. **Download the trained model:**\n    - Place your `best_model.pth` file in the `AI/` directory (or update the path in `app.py`).\n\n4. **Run the app:**\n    ```\n    python app.py\n    ```\n    - Visit [http://127.0.0.1:5000/](http://127.0.0.1:5000/) in your browser.\n\n---\n\n## 🌐 Deployment\n\nYou can deploy this app for free on platforms like [Render](https://render.com/), [Heroku](https://heroku.com/), or [PythonAnywhere](https://www.pythonanywhere.com/).\n\n**For Render/Heroku:**\n- Make sure to set the host and port in `app.py`:\n    ```python\n    if __name__ == '__main__':\n        import os\n        port = int(os.environ.get(\"PORT\", 10000))\n        app.run(host='0.0.0.0', port=port)\n    ```\n\n---\n\n## 🍕 Food Categories\n\n| Index | Food Name         | Index | Food Name      |\n|-------|-------------------|-------|---------------|\n| 0     | Baked Potato      | 17    | dhokla        |\n| 1     | Crispy Chicken    | 18    | fried_rice    |\n| 2     | Donut             | 19    | ice_cream     |\n| 3     | Fries             | 20    | idli          |\n| 4     | Hot Dog           | 21    | jalebi        |\n| 5     | Sandwich          | 22    | kaathi_rolls  |\n| 6     | Taco              | 23    | kadai_paneer  |\n| 7     | Taquito           | 24    | kulfi         |\n| 8     | apple_pie         | 25    | masala_dosa   |\n| 9     | burger            | 26    | momos         |\n| 10    | butter_naan       | 27    | omelette      |\n| 11    | chai              | 28    | paani_puri    |\n| 12    | chapati           | 29    | pakode        |\n| 13    | cheesecake        | 30    | pav_bhaji     |\n| 14    | chicken_curry     | 31    | pizza         |\n| 15    | chole_bhature     | 32    | samosa        |\n| 16    | dal_makhani       | 33    | sushi         |\n\n---\n\n## 🤖 Credits\n\n- Model trained on [AkshilShah21/food_images](https://huggingface.co/datasets/AkshilShah21/food_images)\n- UI inspired by [Tailwind CSS](https://tailwindcss.com/)\n- Project by [Peter Vecina](https://github.com/peterdev123)\n\n---\n\n## 🥳 License\n\nMIT License.  \nHave fun, and may your snacks always be correctly classified!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdev123%2Ffood_detective","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterdev123%2Ffood_detective","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdev123%2Ffood_detective/lists"}