{"id":42872,"date":"2020-11-10T15:00:13","date_gmt":"2020-11-10T14:00:13","guid":{"rendered":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/?p=42872"},"modified":"2020-11-06T13:00:20","modified_gmt":"2020-11-06T12:00:20","slug":"using-lobe-models-as-apis-in-azure-functions","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/","title":{"rendered":"Using Lobe models as APIs in Azure Functions"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-full size-full webp-format\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIHeader.jpg\" alt=\"An illustration that represents AI, next to a drawing of Bit the Raccoon.\" width=\"1920\" height=\"700\" data-orig-srcset=\"https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIHeader.jpg 1920w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIHeader-300x109.jpg 300w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIHeader-1024x373.jpg 1024w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIHeader-768x280.jpg 768w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIHeader-1536x560.jpg 1536w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIHeader-330x120.jpg 330w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIHeader-800x292.jpg 800w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIHeader-400x146.jpg 400w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIHeader.jpg\" \/><\/p>\n<p>Microsoft has recently shipped a very interesting Machine Learning app called Lobe. This article will cover:<\/p>\n<ul>\n<li>What is Lobe?<\/li>\n<li><span style=\"font-size: 1.4rem\">Lobe vs. Azure Cognitive Service<\/span><\/li>\n<li><span style=\"font-size: 1.4rem\">How to use Lobe models in Azure functions.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>What is Lobe?<\/h2>\n<p>Lobe is a free client app that helps any user to bring machine learning ideas into reality. Just show it examples of what you want it to learn, and it automatically trains a custom machine learning model that can be shipped to your app. You can also export those models to be used on any platform.<\/p>\n<p>Lobe currently supports Image Classification, with Object Detection and Data Classification coming soon.<\/p>\n<p>&nbsp;<\/p>\n<h2>Lobe vs. Cognitive Services<\/h2>\n<p>While Lobe targets most users, Cognitive Services aims for developers with no\/limited machine-learning expertise. All it takes is an API call to embed the ability to see, hear, speak, search, understand and accelerate decision-making into your apps.<\/p>\n<p>Cognitive Services can be trained on the cloud or locally, while Lobe can currently only train locally and data must also be local on the user\u2019s computer.<\/p>\n<p>Collaboration is also an issue for Lobe as it is single use. Cognitive Services is a cloud service that has a robust collaboration and security around data and training.<\/p>\n<p>&nbsp;<\/p>\n<h2>How do you use Lobe?<\/h2>\n<p>1) First, see the below product tour. It covers training, labelling and export models:<\/p>\n<p><iframe loading=\"lazy\" title=\"Introducing Lobe  |  Build your first machine learning model in ten minutes.\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/Mdcw3Sb98DA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>2) Once you have the model ready, you need to export it as a TensorFlow model as below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-full size-full webp-format\" src=\"https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/03.Lobe_.Export.png\" alt=\"graphical user interface, application\" width=\"1203\" height=\"560\" data-orig-srcset=\"https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/03.Lobe_.Export.png 1203w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/03.Lobe_.Export-300x140.png 300w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/03.Lobe_.Export-1024x477.png 1024w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/03.Lobe_.Export-768x358.png 768w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/03.Lobe_.Export-1200x560.png 1200w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/03.Lobe_.Export-330x154.png 330w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/03.Lobe_.Export-800x372.png 800w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/03.Lobe_.Export-400x186.png 400w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/03.Lobe_.Export.png\" \/><\/p>\n<p>3)\u00a0Prepare the Model:<\/p>\n<ul>\n<li><span style=\"font-size: 1.4rem\">Install the <a href=\"https:\/\/github.com\/onnx\/tensorflow-onnx?ocid=AID3020565\" target=\"_blank\" rel=\"noopener noreferrer\">tf2onnx<\/a> tool<\/span><\/li>\n<li><span style=\"font-size: 1.4rem\">Convert the TensorFlow model to ONNX following using the command python <strong>-m tf2onnx.convert &#8211;saved-model<\/strong> <em>path\/that\/contains\/saved_model\/ &#8211;output model.onnx<\/em><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>Use Model in Azure Function<\/h2>\n<p>1) Create a C# Azure Function in Visual Studio as described <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-functions\/functions-create-your-first-function-visual-studio?ocid=AID3020565\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n<p>2) Install the following packages:<\/p>\n<ul>\n<li><span style=\"font-size: 1.4rem\"><strong>lobe.Onnx<\/strong> to import the Onnx based implementation of the image classifier.<\/span><\/li>\n<li><span style=\"font-size: 1.4rem\"><strong>lobe.ImageSharp<\/strong> to get image manipulation utilities<\/span><\/li>\n<li><span style=\"font-size: 1.4rem\"><strong>Microsoft.ML.OnnxRuntime<\/strong> to get the native Onnx runtimes<\/span><\/li>\n<\/ul>\n<p>3) Copy the model and change \u201cCopy Always&#8221; settings:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-full size-full webp-format aligncenter\" src=\"https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/04.Lobe_.CreateFunction.png\" alt=\"graphical user interface, text\" width=\"280\" height=\"585\" data-orig-srcset=\"https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/04.Lobe_.CreateFunction.png 280w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/04.Lobe_.CreateFunction-144x300.png 144w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/04.Lobe_.CreateFunction-120x250.png 120w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/04.Lobe_.CreateFunction-168x350.png 168w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/04.Lobe_.CreateFunction.png\" \/><\/p>\n<p>4) Copy the below method into your function. You can find the entire repo <a href=\"https:\/\/github.com\/saffiali\/Lobe.AI?ocid=AID3020565\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n<pre><span style=\"color: #0000ff\">        private static<\/span> LobeResult CallModel(<span style=\"color: #0000ff\">string<\/span> imageToClassify, ExecutionContext context)\r\n        {\r\n            <span style=\"color: #0000ff\">try<\/span>\r\n            {\r\n                imageToClassify= System.IO.Path.Combine(context.FunctionDirectory, <span style=\"color: #993366\">\"..\\\\testImages\\\\1565.jpg\"<\/span>);\r\n\r\n                <span style=\"color: #0000ff\">var<\/span> signatureFilePath = System.IO.Path.Combine(context.FunctionDirectory, <span style=\"color: #993366\">\"..\\\\signature.json\"<\/span>); ;\r\n                <span style=\"color: #0000ff\">var<\/span> modelFile = System.IO.Path.Combine(context.FunctionDirectory, <span style=\"color: #993366\">\"..\\\\model.onnx\"<\/span>);\r\n                <span style=\"color: #0000ff\">var<\/span> modelFormat = GetConfig(<span style=\"color: #993366\">\"modelFormat\"<\/span>);\r\n\r\n                ImageClassifier.Register(<span style=\"color: #993366\">\"onnx\"<\/span>, () =&gt; <span style=\"color: #0000ff\">new<\/span> OnnxImageClassifier());\r\n                <span style=\"color: #0000ff\">using var<\/span> classifier = ImageClassifier.\r\n                    CreateFromSignatureFile(\r\n                    <span style=\"color: #0000ff\">new<\/span> FileInfo(signatureFilePath),\r\n                    modelFile,\r\n                    modelFormat);\r\n\r\n                <span style=\"color: #0000ff\">var<\/span> results = classifier.Classify(Image\r\n                    .Load(imageToClassify).CloneAs());\r\n\r\n                <span style=\"color: #0000ff\">return new<\/span> LobeResult { Confidence = results.Classification.Confidence, Label = results.Classification.Label };\r\n            }\r\n            <span style=\"color: #0000ff\">catch<\/span> (Exception e)\r\n            {\r\n                <span style=\"color: #0000ff\">return new<\/span> LobeResult\r\n                {\r\n                    Label = <span style=\"color: #993366\">\"unknown\"<\/span>,\r\n                    Confidence = 0\r\n                };<\/pre>\n<p>5) Test the function using <a href=\"https:\/\/www.postman.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Postman<\/a>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"attachment-full size-full webp-format\" src=\"https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/05.Lobe_.Test_.png\" alt=\"graphical user interface, application, website\" width=\"1203\" height=\"913\" data-orig-srcset=\"https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/05.Lobe_.Test_.png 1203w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/05.Lobe_.Test_-300x228.png 300w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/05.Lobe_.Test_-1024x777.png 1024w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/05.Lobe_.Test_-768x583.png 768w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/05.Lobe_.Test_-330x250.png 330w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/05.Lobe_.Test_-800x607.png 800w, https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/05.Lobe_.Test_-400x304.png 400w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-us\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/11\/05.Lobe_.Test_.png\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Summary<\/h2>\n<p>Although using Lobe is not a substitute for the usage of Cognitive Services, it is still a great tool for starter and local machine learning scenarios where scale is a big deal. However, you must note the following:<\/p>\n<ol>\n<li><strong>Lobe is in public preview. There is no SLA, and in the future Lobe may change or be cancelled.<\/strong><\/li>\n<li><span style=\"font-size: 1.4rem\">At present, Lobe only supports image classification (more details <a href=\"https:\/\/docs.lobe.ai\/docs\/train\/train\/\" target=\"_blank\" rel=\"noopener noreferrer\">on our website<\/a>).<\/span><\/li>\n<li><span style=\"font-size: 1.4rem\">Lobe is single-user only.<\/span><\/li>\n<li><span style=\"font-size: 1.4rem\">Lobe data and training occurs on the user\u2019s computer.<\/span><\/li>\n<li><span style=\"font-size: 1.4rem\">Lobe\u202fdoes not provide easy access to cloud data, and cannot train in the cloud.<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>Useful Links<\/h2>\n<ul>\n<li><a href=\"https:\/\/lobe.ai\/\" target=\"_blank\" rel=\"noopener noreferrer\">The Lobe website<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/lobe\/lobe.NET?ocid=AID3020565\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-size: 1.4rem\">.NET libraries for Lobe\u00a0<\/span><\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-functions\/functions-create-your-first-function-visual-studio?ocid=AID3020565\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-size: 1.4rem\">Create your first function in Azure using Visual Studio<\/span><\/a><\/li>\n<li><a href=\"https:\/\/github.com\/saffiali\/Lobe.AI?ocid=AID3020565\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-size: 1.4rem\">The Lobe.AI GitHub page<\/span><\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Lobe is a free client app that helps any user to bring machine learning ideas into reality. Just show it examples of what you want it to learn, and it automatically trains a custom machine learning model that can be shipped to your app.<\/p>\n","protected":false},"author":430,"featured_media":23103,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","footnotes":""},"categories":[594],"post_tag":[519],"content-type":[],"coauthors":[1455],"class_list":["post-42872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technetuk","tag-technet-uk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using Lobe models as APIs in Azure Functions - Microsoft Industry Blogs - United Kingdom<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Lobe models as APIs in Azure Functions - Microsoft Industry Blogs - United Kingdom\" \/>\n<meta property=\"og:description\" content=\"Lobe is a free client app that helps any user to bring machine learning ideas into reality. Just show it examples of what you want it to learn, and it automatically trains a custom machine learning model that can be shipped to your app.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Industry Blogs - United Kingdom\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-10T14:00:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIThumb.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Saffi Ali\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Saffi Ali\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 min read\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/\"},\"author\":[{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/author\/saffi-ali\/\",\"@type\":\"Person\",\"@name\":\"Saffi Ali\"}],\"headline\":\"Using Lobe models as APIs in Azure Functions\",\"datePublished\":\"2020-11-10T14:00:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/\"},\"wordCount\":494,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIThumb.jpg\",\"keywords\":[\"TechNet UK\"],\"articleSection\":[\"TechNet UK\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/\",\"url\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/\",\"name\":\"Using Lobe models as APIs in Azure Functions - Microsoft Industry Blogs - United Kingdom\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIThumb.jpg\",\"datePublished\":\"2020-11-10T14:00:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#primaryimage\",\"url\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIThumb.jpg\",\"contentUrl\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIThumb.jpg\",\"width\":800,\"height\":450,\"caption\":\"An illustration that represents AI, next to a drawing of Bit the Raccoon.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Lobe models as APIs in Azure Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#website\",\"url\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/\",\"name\":\"Microsoft Industry Blogs - United Kingdom\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization\",\"name\":\"Microsoft Industry Blogs - United Kingdom\",\"url\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2019\/08\/Microsoft-Logo.png\",\"contentUrl\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2019\/08\/Microsoft-Logo.png\",\"width\":259,\"height\":194,\"caption\":\"Microsoft Industry Blogs - United Kingdom\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Lobe models as APIs in Azure Functions - Microsoft Industry Blogs - United Kingdom","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/","og_locale":"en_US","og_type":"article","og_title":"Using Lobe models as APIs in Azure Functions - Microsoft Industry Blogs - United Kingdom","og_description":"Lobe is a free client app that helps any user to bring machine learning ideas into reality. Just show it examples of what you want it to learn, and it automatically trains a custom machine learning model that can be shipped to your app.","og_url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/","og_site_name":"Microsoft Industry Blogs - United Kingdom","article_published_time":"2020-11-10T14:00:13+00:00","og_image":[{"width":800,"height":450,"url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIThumb.jpg","type":"image\/jpeg"}],"author":"Saffi Ali","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Saffi Ali","Est. reading time":"2 min read"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#article","isPartOf":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/"},"author":[{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/author\/saffi-ali\/","@type":"Person","@name":"Saffi Ali"}],"headline":"Using Lobe models as APIs in Azure Functions","datePublished":"2020-11-10T14:00:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/"},"wordCount":494,"commentCount":0,"publisher":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization"},"image":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIThumb.jpg","keywords":["TechNet UK"],"articleSection":["TechNet UK"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/","url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/","name":"Using Lobe models as APIs in Azure Functions - Microsoft Industry Blogs - United Kingdom","isPartOf":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#primaryimage"},"image":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIThumb.jpg","datePublished":"2020-11-10T14:00:13+00:00","breadcrumb":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#primaryimage","url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIThumb.jpg","contentUrl":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2020\/01\/AIThumb.jpg","width":800,"height":450,"caption":"An illustration that represents AI, next to a drawing of Bit the Raccoon."},{"@type":"BreadcrumbList","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2020\/11\/10\/using-lobe-models-as-apis-in-azure-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/"},{"@type":"ListItem","position":2,"name":"Using Lobe models as APIs in Azure Functions"}]},{"@type":"WebSite","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#website","url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/","name":"Microsoft Industry Blogs - United Kingdom","description":"","publisher":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization","name":"Microsoft Industry Blogs - United Kingdom","url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2019\/08\/Microsoft-Logo.png","contentUrl":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2019\/08\/Microsoft-Logo.png","width":259,"height":194,"caption":"Microsoft Industry Blogs - United Kingdom"},"image":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/posts\/42872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/users\/430"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/comments?post=42872"}],"version-history":[{"count":0,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/posts\/42872\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/media\/23103"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/media?parent=42872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/categories?post=42872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/post_tag?post=42872"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/content-type?post=42872"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/coauthors?post=42872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}