Skip to content

Instantly share code, notes, and snippets.

@mmmayo13
Last active August 18, 2018 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mmmayo13/a54425b158173ea8f72686813d8b6342 to your computer and use it in GitHub Desktop.
Save mmmayo13/a54425b158173ea8f72686813d8b6342 to your computer and use it in GitHub Desktop.
print mldb.put('/v1/functions/fetch', {
"type": 'fetcher',
"params": {}
})
print mldb.put('/v1/functions/inception', {
"type": 'tensorflow.graph',
"params": {
"modelFileUrl": 'archive+'+
'http://public.mldb.ai/models/inception_dec_2015.zip'+
'#tensorflow_inception_graph.pb',
"inputs": 'fetcher(url)[content] AS "DecodeJpeg/contents"',
"outputs": "pool_3"
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment