{"id":13467759,"url":"https://github.com/idealo/falcon-prediction-app","last_synced_at":"2025-03-26T03:31:06.456Z","repository":{"id":72806251,"uuid":"140692999","full_name":"idealo/falcon-prediction-app","owner":"idealo","description":"Simple Machine Learning Web API Example with Falcon","archived":true,"fork":false,"pushed_at":"2025-01-07T14:06:52.000Z","size":25966,"stargazers_count":50,"open_issues_count":4,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-05T15:02:05.895Z","etag":null,"topics":["api","falcon","machine-learning-api","python3","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idealo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-07-12T09:39:28.000Z","updated_at":"2025-01-07T14:08:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"88df275d-5940-48c8-a67e-891e59fcd5f0","html_url":"https://github.com/idealo/falcon-prediction-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealo%2Ffalcon-prediction-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealo%2Ffalcon-prediction-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealo%2Ffalcon-prediction-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idealo%2Ffalcon-prediction-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idealo","download_url":"https://codeload.github.com/idealo/falcon-prediction-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245584647,"owners_count":20639595,"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":["api","falcon","machine-learning-api","python3","rest-api"],"created_at":"2024-07-31T15:01:00.207Z","updated_at":"2025-03-26T03:31:06.435Z","avatar_url":"https://github.com/idealo.png","language":"Jupyter Notebook","funding_links":[],"categories":["Jupyter Notebook"],"sub_categories":[],"readme":"# Machine Learning Web API Example with Falcon\n\nSimple example that uses [Falcon](https://falconframework.org/) to create a deep learning RESTful prediction service (simple convnet trained on the MNIST dataset). [Locust](https://locust.io/) is used for load testing.\n[Gunicorn](http://gunicorn.org/) as WSGI HTTP Server and [nginx](https://www.nginx.com/) as HTTP proxy server.\n\nThis repository is no longer maintained and has been archived on January, 7th, 2025. \n\n## Getting Started\n\n### Run prediction service\n\n```\ndocker build -t falcon-prediction-app .\ndocker run -p 127.0.0.1:8000:8081 falcon-prediction-app\n```\n\n### Test prediction service\n\n```\n(echo -n '{\"image\": \"'; base64 src/tests/data/four_test.png; echo '\"}') |\ncurl -i -H \"Content-Type: application/json\" -d @- http://127.0.0.1:8000/predict\n```\n\n### Run unittests\n\n```\npytest -s src/tests/\n```\n\n### Run load testing\n\n```\nlocust -f load_testing.py --host=http://127.0.0.1:8000\n```\nNote: Access the Locust GUI via `http://localhost:8089/` to start load testing.\n\n## Dependencies\n- Python conda environment (install with `conda env create --file environment.yml`)\n- Gunicorn\n- Falcon\n- Keras\n- Tensorflow\n- Pillow\n- Locust\n\n## Copyright\nSee [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealo%2Ffalcon-prediction-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidealo%2Ffalcon-prediction-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidealo%2Ffalcon-prediction-app/lists"}