{"id":19050970,"url":"https://github.com/tomasbasham/hack4bananas","last_synced_at":"2026-06-19T03:31:41.163Z","repository":{"id":43951506,"uuid":"226539316","full_name":"tomasbasham/hack4bananas","owner":"tomasbasham","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-12T15:00:09.000Z","size":14379,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-12T03:22:34.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"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/tomasbasham.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}},"created_at":"2019-12-07T16:01:11.000Z","updated_at":"2022-12-13T22:19:12.000Z","dependencies_parsed_at":"2023-01-27T21:15:24.048Z","dependency_job_id":null,"html_url":"https://github.com/tomasbasham/hack4bananas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomasbasham/hack4bananas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fhack4bananas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fhack4bananas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fhack4bananas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fhack4bananas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasbasham","download_url":"https://codeload.github.com/tomasbasham/hack4bananas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fhack4bananas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34516549,"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-06-19T02:00:06.005Z","response_time":61,"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":[],"created_at":"2024-11-08T23:16:48.086Z","updated_at":"2026-06-19T03:31:41.130Z","avatar_url":"https://github.com/tomasbasham.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Granma Bot\n\nFacebook messenger chat bot for generating food recipes.\n\n## Installation\n\n* `git clone git@github.com:tomasbasham/hack4bananas.git`\n* `cd hack4bananas`\n* `./download_data.sh`\n* `docker-compose run --rm --service-ports python`\n* `curl -X POST -H \"Content-Type: application/json\" -d '{\"url\": \"some image url\"}' localhost:8080/predict`\n\n## Inspiration\n\nNot being satisfied with being unable to reproduce culinary experiences had at\nrestaurants or from images of food found on popular image hosting websites (Instagram\n;-))\n\n## What it does\n\nWe've created a Facebook Messenger message bot that generates recipes from the\nphotos that are submitted by our users.\n\n## How we built it\n\nThe messenger application consists of a NodeJS server reading in user inputs via a webhook\nand responding with messages returned from a backend application that is communicated with\nasynchronously.\n\nFor the backend we created a small Flask app that integrates a Facebook curated PyTorch\nmachine learning model [InverseCooking](https://github.com/facebookresearch/inversecooking). We pre-process and\nfeed these images to the model which then generates:\n\n - a recipe name\n - set of ingredients\n - set of instructions\n\n## Challenges we ran into\n\nWe struggled greatly with the Python module system which has historically been a pain in\nthe ass.\n\n## Accomplishments that we're proud of\n\nIT WORKS!!!!\n\n## What we learned\n\nHow to integrate PyTorch with Facebook messenger through the API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbasham%2Fhack4bananas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasbasham%2Fhack4bananas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbasham%2Fhack4bananas/lists"}