{"id":2485,"date":"2024-12-17T02:21:07","date_gmt":"2024-12-17T07:21:07","guid":{"rendered":"https:\/\/www.rodaportal.net\/?p=2485"},"modified":"2024-12-17T02:21:08","modified_gmt":"2024-12-17T07:21:08","slug":"deploying-machine-learning-model-streamlit-app","status":"publish","type":"post","link":"https:\/\/www.rodaportal.net\/?p=2485","title":{"rendered":"Deploying a Machine Learning Model in a Streamlit App"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"youtube-embed\" data-video_id=\"TArTKSwGYTE\"><iframe loading=\"lazy\" title=\"Deploying a Machine Learning Model in a Streamlit APP and Making Live Predictions\" width=\"696\" height=\"392\" src=\"https:\/\/www.youtube.com\/embed\/TArTKSwGYTE?feature=oembed&#038;enablejsapi=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p>In the field of data science rolling out a machine learning model is a stage that enables individuals to engage with your model and receive predictions according to their inputs.When it comes to this blog post we&#8217;ll delve into the process of developing a Streamlit application that smoothly combines with a trained machine learning model.This manual will guide you through every stage of the procedure guaranteeing that you can construct an application that&#8217;s both efficient and easy for users to navigate.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Understanding the Setup<\/strong><\/h1>\n\n\n\n<p>Before diving, into the creation of our Streamlit application it&#8217;s crucial to review the groundwork laid out in the video session we had together. In our work we&#8217;ve crafted a machine learning model. Saved it using Pickle\u2014this model forms the core of our upcoming application. The aim of our Streamlit app is to provide a platform for users to input attributes and get predictions based on these inputs.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Reconstructing the Input<\/strong><\/h1>\n\n\n\n<p>To start developing our app we need to organize the data used for training our model in the stage as it is essential for the model to receive inputs in a predefined format and sequence. To accomplish this task we will establish a function that collects all the required attributes that users are required to enter.<\/p>\n\n\n\n<p>Lets consider a scenario where we include attributes, like power output (in horsepower) torque rating (in pound feet) brand name (make) and physical dimensions (body size). In our application interface design process we&#8217;ll incorporate data entry fields for these attributes. For horsepower data entry we will implement a numerical text box enabling users to specify values ranging from 0, to 1000. By default the initial value will be pre set at 300.&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/firebasestorage.googleapis.com\/v0\/b\/videotoblog-35c6e.appspot.com\/o\/%2Fusers%2FfiW0cYALLucN46OgNqQCq7JpfOt2%2Fblogs%2FAxfhVGirkyTXCzuGZRwm%2Fscreenshots%2Fe29beeb7-b6c1-4f1e-9358-bb266996fba5.webp?alt=media&amp;token=9c98ea0f-96da-4fa6-9b85-c252bcb89803\" alt=\"Input fields for horsepower and torque\"\/><\/figure>\n\n\n\n<p>We plan to add input sections, for torque and the categorical traits, like brand and body size so that users can pick options from lists effortlessly for a user friendly app experience.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Transforming User Inputs<\/strong><\/h1>\n\n\n\n<p>After collecting the information from users&#8217; the following task is to convert this data into a form that our system can understand by encoding the users choices into a format.<\/p>\n\n\n\n<p>When a user chooses &#8220;Audi &#8221; our conversion process changes it into an array, with &#8220;Audi&#8221; as 1 and the other choices as 0.This is crucial for the model to recognize which features are, in use according to user selections.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/firebasestorage.googleapis.com\/v0\/b\/videotoblog-35c6e.appspot.com\/o\/%2Fusers%2FfiW0cYALLucN46OgNqQCq7JpfOt2%2Fblogs%2FAxfhVGirkyTXCzuGZRwm%2Fscreenshots%2F6eea877a-3aa1-4a0a-bb76-a78e609d71b4.webp?alt=media&amp;token=833e400a-8acc-4f0e-80c9-e0c8106a33cf\" alt=\"Transforming user inputs into binary format\"\/><\/figure>\n\n\n\n<p>The conversion process involves iterating over the list of features. Filling in the input array accordingly to prepare a organized input, for the model to make predictions with.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Making Predictions<\/strong><\/h1>\n\n\n\n<p>Once we&#8217;ve processed the information and completed the transformation stage successfully we&#8217;re ready to utilize our trained model, for making predictions. By executing the function on our model and providing the modified input array as an argument we can produce a prediction that align with the choices made by the user.<\/p>\n\n\n\n<p>The forecast will be shown in the application, for user feedback according to their input data.Test the feature to confirm the model is appropriately integrated and predictions are precise.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/firebasestorage.googleapis.com\/v0\/b\/videotoblog-35c6e.appspot.com\/o\/%2Fusers%2FfiW0cYALLucN46OgNqQCq7JpfOt2%2Fblogs%2FAxfhVGirkyTXCzuGZRwm%2Fscreenshots%2F3475000d-ba23-4abb-aea7-db98065c8766.webp?alt=media&amp;token=6722b37b-b2bb-4ede-89a9-29d1ba5ca29e\" alt=\"Making predictions with the model\"\/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Visualizing Feature Importance<\/strong><\/h1>\n\n\n\n<p>In order to improve the user experience of our app further we could also incorporate a representation depicting the importance of each feature. This display will highlight the features that heavily influence the models predictions.<\/p>\n\n\n\n<p>Lets utilize Plotly to craft a bar chart illustrating the significance of features, in our models predictions.This interactive graph empowers users to delve into the impact of features, on our applications functionality and insights.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/firebasestorage.googleapis.com\/v0\/b\/videotoblog-35c6e.appspot.com\/o\/%2Fusers%2FfiW0cYALLucN46OgNqQCq7JpfOt2%2Fblogs%2FAxfhVGirkyTXCzuGZRwm%2Fscreenshots%2Ff640ea6e-9593-4f76-9f60-0780933d4e29.webp?alt=media&amp;token=beded1bf-8f99-4e9b-abed-c4109b7b32b7\" alt=\"Feature importance visualization\"\/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Building the Streamlit App<\/strong><\/h1>\n\n\n\n<p>Now that we have outlined our data collection methods and tools, for analysis and presentation, in place it&#8217;s time to combine them all in a Streamlit application. We&#8217;ll start by bringing in the required libraries and configuring the layout of the page.<\/p>\n\n\n\n<p>Now we&#8217;ll import our model thats been trained previously from the Pickle file and the important features, from an Excel file into our system setup.The side panel will feature fields for user input along with a captivating image header and the central title of our application, on the webpage.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/firebasestorage.googleapis.com\/v0\/b\/videotoblog-35c6e.appspot.com\/o\/%2Fusers%2FfiW0cYALLucN46OgNqQCq7JpfOt2%2Fblogs%2FAxfhVGirkyTXCzuGZRwm%2Fscreenshots%2F2acc59d7-a9bb-4aa6-a314-f8b457b59b03.webp?alt=media&amp;token=117ecdea-55f1-4512-9fc3-7d217855b22c\" alt=\"Streamlit app layout setup\"\/><\/figure>\n\n\n\n<p>Once we have set up the design structure in place\u200b\u200b\u200b we&#8217;ll make two columns. One for users to input information and the other for showing predictions\u200b\u200b\u200b. This arranged format will improve user interaction by making the application easier to use and visually attractive\u200b\u200b\u200b.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Running the App<\/strong><\/h1>\n\n\n\n<p>To run the Streamlit app, we will need to execute a command in the terminal. After navigating to the directory containing our app file, we can run the command <code>streamlit run app.py<\/code>. This will launch the app in a new tab in our web browser.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/firebasestorage.googleapis.com\/v0\/b\/videotoblog-35c6e.appspot.com\/o\/%2Fusers%2FfiW0cYALLucN46OgNqQCq7JpfOt2%2Fblogs%2FAxfhVGirkyTXCzuGZRwm%2Fscreenshots%2F321f7a24-cb4b-48ed-9b48-c635dd3f7c8b.webp?alt=media&amp;token=e53d2a51-9c4a-443b-8541-ca8de6c4e307\" alt=\"Running the Streamlit app\"\/><\/figure>\n\n\n\n<p>Once the application is up and running smoothly for us to use it practically by entering data points and pressing the button for obtaining results based on our choices to showcase how well our model works in real world scenarios.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h1>\n\n\n\n<p>In this article we delved into the steps involved in setting up a machine learning model as a Streamlit application.In this article we delved into the steps involved in setting up a machine learning model as a Streamlit application.We achieved this by reshaping inputs augmenting them with predictions and showcasing the significance of features through visualization.This resulted in a program that enables users to interact directly with our model.<\/p>\n\n\n\n<p>In the video presentation we plan to expand on this idea by creating a Power BI dashboard that showcases our predictions from the model in conjunction, with the data available to us.This will offer insights and analytical tools, for companies seeking to incorporate machine learning into their activities.<\/p>\n\n\n\n<p>If you found this guide useful and enjoyed it please give it a like. Consider subscribing for articles, on data analysis and machine learning !<\/p>\n\n\n\n<p>Feel free to explore content by watching the videos from this series.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/youtu.be\/vVOeIdacemw\">Regression Part 1 &#8211; YouTube<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/youtu.be\/TArTKSwGYTE\">Streamlit Part 2 &#8211; YouTube<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/youtu.be\/1AD6Az2OTVI\">Power BI Part 3 &#8211; YouTube<\/a><\/li>\n<\/ul>\n\n\n\n<p>Connect with me on <a href=\"https:\/\/x.com\/pitsillides91\">X<\/a> for updates and more insights!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the field of data science rolling out a machine learning model is a stage that enables individuals to engage with your model and receive predictions according to their inputs.When it comes to this blog post we&#8217;ll delve into the process of developing a Streamlit application that smoothly combines with a trained machine learning model.This [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2487,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2950,1544],"tags":[2986,3196,3197,2954],"class_list":{"0":"post-2485","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data_analytics_101","8":"category-video","9":"tag-data-science","10":"tag-deployment","11":"tag-machine-learning","12":"tag-streamlit"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Deploying a Machine Learning Model in a Streamlit App - Rodaportal<\/title>\n<meta name=\"description\" content=\"Learn how to deploy a machine learning model in a Streamlit app with our step-by-step guide. Make your model user-friendly and interactive.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/18.220.63.61\/?p=2485\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploying a Machine Learning Model in a Streamlit App\" \/>\n<meta property=\"og:description\" content=\"\ud83d\udcca\ud83d\udcbb Transform your machine learning model into a user-friendly Streamlit app! Check out our latest blog post for a step-by-step guide to deploying your model and making predictions. #MachineLearning #Streamlit #DataScience #Tech\" \/>\n<meta property=\"og:url\" content=\"http:\/\/18.220.63.61\/?p=2485\" \/>\n<meta property=\"og:site_name\" content=\"Rodaportal\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Rodaportal\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-17T07:21:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-17T07:21:08+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/18.220.63.61\/wp-content\/uploads\/2024\/12\/TArTKSwGYTE-HD.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Rodaportal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Deploying a Machine Learning Model in a Streamlit App\" \/>\n<meta name=\"twitter:description\" content=\"\ud83d\udcca\ud83d\udcbb Transform your machine learning model into a user-friendly Streamlit app! Check out our latest blog post for a step-by-step guide to deploying your model and making predictions. #MachineLearning #Streamlit #DataScience #Tech\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.rodaportal.net\/wp-content\/uploads\/2024\/12\/TArTKSwGYTE-HD.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@RodaPP1\" \/>\n<meta name=\"twitter:site\" content=\"@RodaPP1\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rodaportal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485\"},\"author\":{\"name\":\"Rodaportal\",\"@id\":\"https:\\\/\\\/www.rodaportal.net\\\/#\\\/schema\\\/person\\\/1ed067be473943abefead5f395f0bf70\"},\"headline\":\"Deploying a Machine Learning Model in a Streamlit App\",\"datePublished\":\"2024-12-17T07:21:07+00:00\",\"dateModified\":\"2024-12-17T07:21:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485\"},\"wordCount\":1001,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rodaportal.net\\\/#organization\"},\"image\":{\"@id\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rodaportal.net\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/TArTKSwGYTE-HD.jpg\",\"keywords\":[\"Data Science\",\"Deployment\",\"Machine Learning\",\"Streamlit\"],\"articleSection\":[\"Data Analytics 101\",\"Video\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/18.220.63.61\\\/?p=2485#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485\",\"url\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485\",\"name\":\"Deploying a Machine Learning Model in a Streamlit App - Rodaportal\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rodaportal.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rodaportal.net\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/TArTKSwGYTE-HD.jpg\",\"datePublished\":\"2024-12-17T07:21:07+00:00\",\"dateModified\":\"2024-12-17T07:21:08+00:00\",\"description\":\"Learn how to deploy a machine learning model in a Streamlit app with our step-by-step guide. Make your model user-friendly and interactive.\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/18.220.63.61\\\/?p=2485\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485#primaryimage\",\"url\":\"https:\\\/\\\/www.rodaportal.net\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/TArTKSwGYTE-HD.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rodaportal.net\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/TArTKSwGYTE-HD.jpg\",\"width\":1280,\"height\":720,\"caption\":\"Deploying a Machine Learning Model in a Streamlit App\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/18.220.63.61\\\/?p=2485#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rodaportal.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deploying a Machine Learning Model in a Streamlit App\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rodaportal.net\\\/#website\",\"url\":\"https:\\\/\\\/www.rodaportal.net\\\/\",\"name\":\"Rodaportal\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rodaportal.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rodaportal.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rodaportal.net\\\/#organization\",\"name\":\"Rodaportal\",\"url\":\"https:\\\/\\\/www.rodaportal.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rodaportal.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"http:\\\/\\\/www.rodaportal.net\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/imageedit_1_9835162131.png\",\"contentUrl\":\"http:\\\/\\\/www.rodaportal.net\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/imageedit_1_9835162131.png\",\"width\":112,\"height\":112,\"caption\":\"Rodaportal\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rodaportal.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Rodaportal\",\"https:\\\/\\\/x.com\\\/RodaPP1\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rodaportal.net\\\/#\\\/schema\\\/person\\\/1ed067be473943abefead5f395f0bf70\",\"name\":\"Rodaportal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/57e783bd41f1f91e03748e1e48327997442e1387475b4aa6b38c40ec5eeaadf7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/57e783bd41f1f91e03748e1e48327997442e1387475b4aa6b38c40ec5eeaadf7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/57e783bd41f1f91e03748e1e48327997442e1387475b4aa6b38c40ec5eeaadf7?s=96&d=mm&r=g\",\"caption\":\"Rodaportal\"},\"sameAs\":[\"http:\\\/\\\/www.rodaportal.net\"],\"url\":\"https:\\\/\\\/www.rodaportal.net\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deploying a Machine Learning Model in a Streamlit App - Rodaportal","description":"Learn how to deploy a machine learning model in a Streamlit app with our step-by-step guide. Make your model user-friendly and interactive.","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":"http:\/\/18.220.63.61\/?p=2485","og_locale":"en_US","og_type":"article","og_title":"Deploying a Machine Learning Model in a Streamlit App","og_description":"\ud83d\udcca\ud83d\udcbb Transform your machine learning model into a user-friendly Streamlit app! Check out our latest blog post for a step-by-step guide to deploying your model and making predictions. #MachineLearning #Streamlit #DataScience #Tech","og_url":"http:\/\/18.220.63.61\/?p=2485","og_site_name":"Rodaportal","article_publisher":"https:\/\/www.facebook.com\/Rodaportal","article_published_time":"2024-12-17T07:21:07+00:00","article_modified_time":"2024-12-17T07:21:08+00:00","og_image":[{"width":1280,"height":720,"url":"http:\/\/18.220.63.61\/wp-content\/uploads\/2024\/12\/TArTKSwGYTE-HD.jpg","type":"image\/jpeg"}],"author":"Rodaportal","twitter_card":"summary_large_image","twitter_title":"Deploying a Machine Learning Model in a Streamlit App","twitter_description":"\ud83d\udcca\ud83d\udcbb Transform your machine learning model into a user-friendly Streamlit app! Check out our latest blog post for a step-by-step guide to deploying your model and making predictions. #MachineLearning #Streamlit #DataScience #Tech","twitter_image":"https:\/\/www.rodaportal.net\/wp-content\/uploads\/2024\/12\/TArTKSwGYTE-HD.jpg","twitter_creator":"@RodaPP1","twitter_site":"@RodaPP1","twitter_misc":{"Written by":"Rodaportal","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/18.220.63.61\/?p=2485#article","isPartOf":{"@id":"http:\/\/18.220.63.61\/?p=2485"},"author":{"name":"Rodaportal","@id":"https:\/\/www.rodaportal.net\/#\/schema\/person\/1ed067be473943abefead5f395f0bf70"},"headline":"Deploying a Machine Learning Model in a Streamlit App","datePublished":"2024-12-17T07:21:07+00:00","dateModified":"2024-12-17T07:21:08+00:00","mainEntityOfPage":{"@id":"http:\/\/18.220.63.61\/?p=2485"},"wordCount":1001,"commentCount":0,"publisher":{"@id":"https:\/\/www.rodaportal.net\/#organization"},"image":{"@id":"http:\/\/18.220.63.61\/?p=2485#primaryimage"},"thumbnailUrl":"https:\/\/www.rodaportal.net\/wp-content\/uploads\/2024\/12\/TArTKSwGYTE-HD.jpg","keywords":["Data Science","Deployment","Machine Learning","Streamlit"],"articleSection":["Data Analytics 101","Video"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/18.220.63.61\/?p=2485#respond"]}]},{"@type":"WebPage","@id":"http:\/\/18.220.63.61\/?p=2485","url":"http:\/\/18.220.63.61\/?p=2485","name":"Deploying a Machine Learning Model in a Streamlit App - Rodaportal","isPartOf":{"@id":"https:\/\/www.rodaportal.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/18.220.63.61\/?p=2485#primaryimage"},"image":{"@id":"http:\/\/18.220.63.61\/?p=2485#primaryimage"},"thumbnailUrl":"https:\/\/www.rodaportal.net\/wp-content\/uploads\/2024\/12\/TArTKSwGYTE-HD.jpg","datePublished":"2024-12-17T07:21:07+00:00","dateModified":"2024-12-17T07:21:08+00:00","description":"Learn how to deploy a machine learning model in a Streamlit app with our step-by-step guide. Make your model user-friendly and interactive.","breadcrumb":{"@id":"http:\/\/18.220.63.61\/?p=2485#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/18.220.63.61\/?p=2485"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/18.220.63.61\/?p=2485#primaryimage","url":"https:\/\/www.rodaportal.net\/wp-content\/uploads\/2024\/12\/TArTKSwGYTE-HD.jpg","contentUrl":"https:\/\/www.rodaportal.net\/wp-content\/uploads\/2024\/12\/TArTKSwGYTE-HD.jpg","width":1280,"height":720,"caption":"Deploying a Machine Learning Model in a Streamlit App"},{"@type":"BreadcrumbList","@id":"http:\/\/18.220.63.61\/?p=2485#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rodaportal.net\/"},{"@type":"ListItem","position":2,"name":"Deploying a Machine Learning Model in a Streamlit App"}]},{"@type":"WebSite","@id":"https:\/\/www.rodaportal.net\/#website","url":"https:\/\/www.rodaportal.net\/","name":"Rodaportal","description":"","publisher":{"@id":"https:\/\/www.rodaportal.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rodaportal.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rodaportal.net\/#organization","name":"Rodaportal","url":"https:\/\/www.rodaportal.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rodaportal.net\/#\/schema\/logo\/image\/","url":"http:\/\/www.rodaportal.net\/wp-content\/uploads\/2023\/10\/imageedit_1_9835162131.png","contentUrl":"http:\/\/www.rodaportal.net\/wp-content\/uploads\/2023\/10\/imageedit_1_9835162131.png","width":112,"height":112,"caption":"Rodaportal"},"image":{"@id":"https:\/\/www.rodaportal.net\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Rodaportal","https:\/\/x.com\/RodaPP1"]},{"@type":"Person","@id":"https:\/\/www.rodaportal.net\/#\/schema\/person\/1ed067be473943abefead5f395f0bf70","name":"Rodaportal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/57e783bd41f1f91e03748e1e48327997442e1387475b4aa6b38c40ec5eeaadf7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/57e783bd41f1f91e03748e1e48327997442e1387475b4aa6b38c40ec5eeaadf7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/57e783bd41f1f91e03748e1e48327997442e1387475b4aa6b38c40ec5eeaadf7?s=96&d=mm&r=g","caption":"Rodaportal"},"sameAs":["http:\/\/www.rodaportal.net"],"url":"https:\/\/www.rodaportal.net\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=\/wp\/v2\/posts\/2485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2485"}],"version-history":[{"count":2,"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=\/wp\/v2\/posts\/2485\/revisions"}],"predecessor-version":[{"id":2489,"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=\/wp\/v2\/posts\/2485\/revisions\/2489"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=\/wp\/v2\/media\/2487"}],"wp:attachment":[{"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rodaportal.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}