{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/lunardog/kelner/pulls/3","id":192632662,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNjMyNjYy","html_url":"https://github.com/lunardog/kelner/pull/3","diff_url":"https://github.com/lunardog/kelner/pull/3.diff","patch_url":"https://github.com/lunardog/kelner/pull/3.patch","issue_url":"https://api.github.com/repos/lunardog/kelner/issues/3","number":3,"state":"closed","locked":false,"title":"Use `kelner` in python code","user":{"login":"lunardog","id":367876,"node_id":"MDQ6VXNlcjM2Nzg3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/367876?v=4","gravatar_id":"","url":"https://api.github.com/users/lunardog","html_url":"https://github.com/lunardog","followers_url":"https://api.github.com/users/lunardog/followers","following_url":"https://api.github.com/users/lunardog/following{/other_user}","gists_url":"https://api.github.com/users/lunardog/gists{/gist_id}","starred_url":"https://api.github.com/users/lunardog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunardog/subscriptions","organizations_url":"https://api.github.com/users/lunardog/orgs","repos_url":"https://api.github.com/users/lunardog/repos","events_url":"https://api.github.com/users/lunardog/events{/privacy}","received_events_url":"https://api.github.com/users/lunardog/received_events","type":"User","site_admin":false},"body":"From `README.md`:\r\n\r\n## Use `kelner` in code\r\n\r\nIf you need to, you can also use `kelner` in your code.\r\n\r\nLet's create an example model:\r\n\r\n```python\r\nimport keras\r\n\r\nl1 = keras.layers.Input((2,))\r\nl2 = keras.layers.Dense(3)(l1)\r\nl3 = keras.layers.Dense(1)(l2)\r\nmodel = keras.models.Model(inputs=l1, outputs=l3)\r\nmodel.save(\"saved_model.h5\")\r\n```\r\n\r\nNow load the model in `kelner`:\r\n\r\n```python\r\nimport kelner\r\n\r\nloaded_model = kelner.model.load(\"saved_model.h5\")  # keras engine is the default\r\nkelner.serve(loaded_model, port=8080)\r\n```\r\n","created_at":"2018-06-05T08:50:03Z","updated_at":"2018-06-06T08:43:19Z","closed_at":"2018-06-06T08:43:19Z","merged_at":"2018-06-06T08:43:19Z","merge_commit_sha":"9d86d9aa7b83499558da782022fc17661cddd285","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lunardog/kelner/pulls/3/commits","review_comments_url":"https://api.github.com/repos/lunardog/kelner/pulls/3/comments","review_comment_url":"https://api.github.com/repos/lunardog/kelner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lunardog/kelner/issues/3/comments","statuses_url":"https://api.github.com/repos/lunardog/kelner/statuses/872531f3a33d031f4d5934705fc7524b4a59a11a","head":{"label":"lunardog:library","ref":"library","sha":"872531f3a33d031f4d5934705fc7524b4a59a11a","user":{"login":"lunardog","id":367876,"node_id":"MDQ6VXNlcjM2Nzg3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/367876?v=4","gravatar_id":"","url":"https://api.github.com/users/lunardog","html_url":"https://github.com/lunardog","followers_url":"https://api.github.com/users/lunardog/followers","following_url":"https://api.github.com/users/lunardog/following{/other_user}","gists_url":"https://api.github.com/users/lunardog/gists{/gist_id}","starred_url":"https://api.github.com/users/lunardog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunardog/subscriptions","organizations_url":"https://api.github.com/users/lunardog/orgs","repos_url":"https://api.github.com/users/lunardog/repos","events_url":"https://api.github.com/users/lunardog/events{/privacy}","received_events_url":"https://api.github.com/users/lunardog/received_events","type":"User","site_admin":false},"repo":{"id":122298738,"node_id":"MDEwOlJlcG9zaXRvcnkxMjIyOTg3Mzg=","name":"kelner","full_name":"lunardog/kelner","owner":{"login":"lunardog","id":367876,"node_id":"MDQ6VXNlcjM2Nzg3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/367876?v=4","gravatar_id":"","url":"https://api.github.com/users/lunardog","html_url":"https://github.com/lunardog","followers_url":"https://api.github.com/users/lunardog/followers","following_url":"https://api.github.com/users/lunardog/following{/other_user}","gists_url":"https://api.github.com/users/lunardog/gists{/gist_id}","starred_url":"https://api.github.com/users/lunardog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunardog/subscriptions","organizations_url":"https://api.github.com/users/lunardog/orgs","repos_url":"https://api.github.com/users/lunardog/repos","events_url":"https://api.github.com/users/lunardog/events{/privacy}","received_events_url":"https://api.github.com/users/lunardog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lunardog/kelner","description":"Serve your models","fork":false,"url":"https://api.github.com/repos/lunardog/kelner","forks_url":"https://api.github.com/repos/lunardog/kelner/forks","keys_url":"https://api.github.com/repos/lunardog/kelner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lunardog/kelner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lunardog/kelner/teams","hooks_url":"https://api.github.com/repos/lunardog/kelner/hooks","issue_events_url":"https://api.github.com/repos/lunardog/kelner/issues/events{/number}","events_url":"https://api.github.com/repos/lunardog/kelner/events","assignees_url":"https://api.github.com/repos/lunardog/kelner/assignees{/user}","branches_url":"https://api.github.com/repos/lunardog/kelner/branches{/branch}","tags_url":"https://api.github.com/repos/lunardog/kelner/tags","blobs_url":"https://api.github.com/repos/lunardog/kelner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lunardog/kelner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lunardog/kelner/git/refs{/sha}","trees_url":"https://api.github.com/repos/lunardog/kelner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lunardog/kelner/statuses/{sha}","languages_url":"https://api.github.com/repos/lunardog/kelner/languages","stargazers_url":"https://api.github.com/repos/lunardog/kelner/stargazers","contributors_url":"https://api.github.com/repos/lunardog/kelner/contributors","subscribers_url":"https://api.github.com/repos/lunardog/kelner/subscribers","subscription_url":"https://api.github.com/repos/lunardog/kelner/subscription","commits_url":"https://api.github.com/repos/lunardog/kelner/commits{/sha}","git_commits_url":"https://api.github.com/repos/lunardog/kelner/git/commits{/sha}","comments_url":"https://api.github.com/repos/lunardog/kelner/comments{/number}","issue_comment_url":"https://api.github.com/repos/lunardog/kelner/issues/comments{/number}","contents_url":"https://api.github.com/repos/lunardog/kelner/contents/{+path}","compare_url":"https://api.github.com/repos/lunardog/kelner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lunardog/kelner/merges","archive_url":"https://api.github.com/repos/lunardog/kelner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lunardog/kelner/downloads","issues_url":"https://api.github.com/repos/lunardog/kelner/issues{/number}","pulls_url":"https://api.github.com/repos/lunardog/kelner/pulls{/number}","milestones_url":"https://api.github.com/repos/lunardog/kelner/milestones{/number}","notifications_url":"https://api.github.com/repos/lunardog/kelner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lunardog/kelner/labels{/name}","releases_url":"https://api.github.com/repos/lunardog/kelner/releases{/id}","deployments_url":"https://api.github.com/repos/lunardog/kelner/deployments","created_at":"2018-02-21T06:03:05Z","updated_at":"2018-06-06T08:42:16Z","pushed_at":"2018-06-06T08:43:19Z","git_url":"git://github.com/lunardog/kelner.git","ssh_url":"git@github.com:lunardog/kelner.git","clone_url":"https://github.com/lunardog/kelner.git","svn_url":"https://github.com/lunardog/kelner","homepage":"https://lunardog.github.io/kelner/","size":771,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":0,"watchers":13,"default_branch":"master"}},"base":{"label":"lunardog:master","ref":"master","sha":"59f4ec458ad520764ca164a70f46e4d71544b048","user":{"login":"lunardog","id":367876,"node_id":"MDQ6VXNlcjM2Nzg3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/367876?v=4","gravatar_id":"","url":"https://api.github.com/users/lunardog","html_url":"https://github.com/lunardog","followers_url":"https://api.github.com/users/lunardog/followers","following_url":"https://api.github.com/users/lunardog/following{/other_user}","gists_url":"https://api.github.com/users/lunardog/gists{/gist_id}","starred_url":"https://api.github.com/users/lunardog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunardog/subscriptions","organizations_url":"https://api.github.com/users/lunardog/orgs","repos_url":"https://api.github.com/users/lunardog/repos","events_url":"https://api.github.com/users/lunardog/events{/privacy}","received_events_url":"https://api.github.com/users/lunardog/received_events","type":"User","site_admin":false},"repo":{"id":122298738,"node_id":"MDEwOlJlcG9zaXRvcnkxMjIyOTg3Mzg=","name":"kelner","full_name":"lunardog/kelner","owner":{"login":"lunardog","id":367876,"node_id":"MDQ6VXNlcjM2Nzg3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/367876?v=4","gravatar_id":"","url":"https://api.github.com/users/lunardog","html_url":"https://github.com/lunardog","followers_url":"https://api.github.com/users/lunardog/followers","following_url":"https://api.github.com/users/lunardog/following{/other_user}","gists_url":"https://api.github.com/users/lunardog/gists{/gist_id}","starred_url":"https://api.github.com/users/lunardog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunardog/subscriptions","organizations_url":"https://api.github.com/users/lunardog/orgs","repos_url":"https://api.github.com/users/lunardog/repos","events_url":"https://api.github.com/users/lunardog/events{/privacy}","received_events_url":"https://api.github.com/users/lunardog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lunardog/kelner","description":"Serve your models","fork":false,"url":"https://api.github.com/repos/lunardog/kelner","forks_url":"https://api.github.com/repos/lunardog/kelner/forks","keys_url":"https://api.github.com/repos/lunardog/kelner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lunardog/kelner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lunardog/kelner/teams","hooks_url":"https://api.github.com/repos/lunardog/kelner/hooks","issue_events_url":"https://api.github.com/repos/lunardog/kelner/issues/events{/number}","events_url":"https://api.github.com/repos/lunardog/kelner/events","assignees_url":"https://api.github.com/repos/lunardog/kelner/assignees{/user}","branches_url":"https://api.github.com/repos/lunardog/kelner/branches{/branch}","tags_url":"https://api.github.com/repos/lunardog/kelner/tags","blobs_url":"https://api.github.com/repos/lunardog/kelner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lunardog/kelner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lunardog/kelner/git/refs{/sha}","trees_url":"https://api.github.com/repos/lunardog/kelner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lunardog/kelner/statuses/{sha}","languages_url":"https://api.github.com/repos/lunardog/kelner/languages","stargazers_url":"https://api.github.com/repos/lunardog/kelner/stargazers","contributors_url":"https://api.github.com/repos/lunardog/kelner/contributors","subscribers_url":"https://api.github.com/repos/lunardog/kelner/subscribers","subscription_url":"https://api.github.com/repos/lunardog/kelner/subscription","commits_url":"https://api.github.com/repos/lunardog/kelner/commits{/sha}","git_commits_url":"https://api.github.com/repos/lunardog/kelner/git/commits{/sha}","comments_url":"https://api.github.com/repos/lunardog/kelner/comments{/number}","issue_comment_url":"https://api.github.com/repos/lunardog/kelner/issues/comments{/number}","contents_url":"https://api.github.com/repos/lunardog/kelner/contents/{+path}","compare_url":"https://api.github.com/repos/lunardog/kelner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lunardog/kelner/merges","archive_url":"https://api.github.com/repos/lunardog/kelner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lunardog/kelner/downloads","issues_url":"https://api.github.com/repos/lunardog/kelner/issues{/number}","pulls_url":"https://api.github.com/repos/lunardog/kelner/pulls{/number}","milestones_url":"https://api.github.com/repos/lunardog/kelner/milestones{/number}","notifications_url":"https://api.github.com/repos/lunardog/kelner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lunardog/kelner/labels{/name}","releases_url":"https://api.github.com/repos/lunardog/kelner/releases{/id}","deployments_url":"https://api.github.com/repos/lunardog/kelner/deployments","created_at":"2018-02-21T06:03:05Z","updated_at":"2018-06-06T08:42:16Z","pushed_at":"2018-06-06T08:43:19Z","git_url":"git://github.com/lunardog/kelner.git","ssh_url":"git@github.com:lunardog/kelner.git","clone_url":"https://github.com/lunardog/kelner.git","svn_url":"https://github.com/lunardog/kelner","homepage":"https://lunardog.github.io/kelner/","size":771,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":0,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lunardog/kelner/pulls/3"},"html":{"href":"https://github.com/lunardog/kelner/pull/3"},"issue":{"href":"https://api.github.com/repos/lunardog/kelner/issues/3"},"comments":{"href":"https://api.github.com/repos/lunardog/kelner/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/lunardog/kelner/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/lunardog/kelner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lunardog/kelner/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/lunardog/kelner/statuses/872531f3a33d031f4d5934705fc7524b4a59a11a"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"lunardog","id":367876,"node_id":"MDQ6VXNlcjM2Nzg3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/367876?v=4","gravatar_id":"","url":"https://api.github.com/users/lunardog","html_url":"https://github.com/lunardog","followers_url":"https://api.github.com/users/lunardog/followers","following_url":"https://api.github.com/users/lunardog/following{/other_user}","gists_url":"https://api.github.com/users/lunardog/gists{/gist_id}","starred_url":"https://api.github.com/users/lunardog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunardog/subscriptions","organizations_url":"https://api.github.com/users/lunardog/orgs","repos_url":"https://api.github.com/users/lunardog/repos","events_url":"https://api.github.com/users/lunardog/events{/privacy}","received_events_url":"https://api.github.com/users/lunardog/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":78,"deletions":22,"changed_files":6}}
{"actor":{"display_login":"lunardog"}}