Spelling and Grammar Checking Streamlit App: Docker Image and Docker Hub

AI Anytime · Intermediate ·☁️ DevOps & Cloud ·3y ago

Key Takeaways

The video demonstrates how to build and deploy a Spelling and Grammar Checking Streamlit App using Docker, with a focus on creating a Docker image, pushing it to Docker Hub, and deploying the application. The video utilizes Docker Hub, Docker CLI, and Streamlit to containerize and manage the application.

Full Transcript

hello everyone welcome to AI anytime YouTube channel so in this video we'll push our Docker image to the official Docker Hub Repository so if you remember in the last video we have created the docker image of the streamlit application that we built for the spelling and grammar mistakes check app right so we'll take that uh Docker image and we'll push it to this repository so we can use this for the deployment directly so you can see right here I am on Docker Hub right now so there are two ways you can work with this you can work with directly you can configure a CI CD and you can use this or you can also use it from your local CLI the command line tools I will use the local command line tools to interact with this repository and I will push the docker image that I have locally in my system so for that I have to create a repository first so if you see is an option to create a repository I don't have any repository so far on this Docker Hub account so you can see the username here AI anytime and in the name so let's give it a name I'm just calling it maybe text correction this is my name and description uh let's call it official look for image for the spelling and grammar mistakes something like that it's a basic description so you can also see there are two options one is public the other one is private you can also use the private one which provide if you click on this using 0 of 1 private repository so you can use uh one repository at Max for private but I will keep it public that can also that also appears in the docker house search result so now you can also use that image if you want you know you can just download that image and you can run that image if you have Docker installed in your local machine or any remote machine that can be any uh Cloud machine as well so in this case let's create this it will take a little time so as you can see here it says I have a I have a repository here which is AI anytime and slash text correction it is also at the description it also gives you some insights like last post a few seconds ago and tags and scans and I'll I'll tell you about tax and cancellator right so Docker has now all this uh testing and scanning with the help of sync so if you don't know single I'll cover that you know brief about sync later we also have a readme you can create a readme file for the for the end user or the audience who like to use your image directly from this docker and we have some command that you can use this to you know interact that you can also use it to push your image from your local machine or from remote machine to this repository basically this is a more kind of a registry that we are using so if you talk about cloud and a cloud for example Azure or AWS they have as you have Azure container registry ACR and then we have ECR as well right for AWS so but we are directly going to use this Docker Hub official repository okay and then we have also automated build so for that you need to upgrade to either pro team and business but we don't need it for now this is a very simple tutorial right so let's see how we can you know push the image that we built locally so for that I will first see what all images that we have right for the command is as you know Docker images so you can see the image here text correction image which is the tag latest and some some information right so we will use this image and we'll push this image to this repository so how can we do that so first we have to log in to this repository right to the account so there are many ways I have been already logged in right to this repository earlier but if you were logging it for the first time and if you don't know how to log in you can also pass the username flag right so use the username flag and pass your username something like this and if you hit enter it will ask you for the password so I have already logged in uh into this I'm not going to do that when you when I hit enter you'll see it says authenticating with existing credentials and it says login succeeded so I have been successfully logged in into this repository now okay basically this account that I have ai anytime so first I have to tag this image right with this repository otherwise how would Docker understand it in which the repository you have to push this image so we have to tag this right how can we tag it so the way of tagging is we'll say window docker tag and then the image name that we have which says text correction uh I hope I'm typing right text Direction image and then we give the uh this username right so which is a i any time slash text correction and would like to give a first you can also this is basically a tagging you can see the tag here later so I want to give it the first version of it right so I am saying one point 1.0 so when I hit enter tag has been successfully done and the next step is to just push this so I'll say sudo Docker push uh just use excuse me just post just use this AI anytime and text correction so text correction dot 1.0 and you can see it says the push refers to this repository right Docker IO slash AI anytime slash text correction so it will start uh to sing it and you can see over here how how fast it's pushing it will take really time to push all of the layers that we have right so if you see in the containers we have different layers and it all it all has been being pushed here to this repository context correction so it will take little time and I'll get back when this is this being done so as you can see uh the posts have been successfully done here so what I'm going to do now let's refresh this and once you refresh it you will see the under tags and scams right we have something called 1.0 the tag uh it has been pushed operating system Linux Arc is AMD 64 and the type is image and pushed a few seconds ago right so if you if you go here and see all you can see the image has been pushed from here right so you can see if we have other versions as well it will be listed here and if you see the compressed size it's around 624 or MB right if let's click on this it will have all your image layers listed down here you can see the cmds the pin the environmental path all of the layers that have been you know used when when we were building that Docker image right so for that we have to upgrade if you upgrade uh basically Docker has partnered with someone some some in some organization called sync so sync is kind of uh scanning and testing company which kind of looks after if there's any bugs in your Docker images for example the python versions if it if it's too old like python 3.7 or 3.8 it will be treated as other bug right so I'm not going to upgrade it I'll keep it as it is and I'll go back and so you can see right so now if you want to pull this now suppose this is this is what I have pushed it right now if some of my friends who wants to use this in their local machine or if they want to build a POC for spelling and grammar uh check mistakes they can just use this Docker image right and they can just use it in their software or in their application that they are building so how can I pull this image and use it so if you see there is a command called Docker pull AI anytime slash text correction and something like that right let me just copy this pull command copy it I'll go I'll come back here on my terminal and what I will do I will again say I have to of course use sudo and then I'll just paste and I'll just hit enter and what it will do it will connect with this repository and it will pull it and you can see the image is up to date for AI anytime slice text correction 1.0 let me do one thing so I already have this image tagged in my local machine but you can try it and you try it and let me know if uh if it is working for you or not uh uh the way we want it to work right so if you see images you can see this image right AI anytime slash text correction I mean pushed so this is the one that we have tagged and pushed it to this repository and the below one that we built it right for the student application so this is the one way of uh pushing the docker images from your local machine to Docker hub and now what we will do in the next video we will take this uh excuse me we'll take this AI anytime slash text correction the image that we pushed will use this image and will use it somewhere in app service right in a web application you will use Microsoft Azure to do that we'll directly take it from here and we'll we'll not use code we'll use Docker and we'll deploy the application on Microsoft azure so I hope you liked the video and you you got some understanding that how Docker works and how you can you know use extremely application and containerize it and push it to the docker Hub or repositories right so if you like if you liked it please like and share this video And subscribe the channel thank you so much

Original Description

In this video, we built the docker image for the "Spelling and Grammar Checking Streamlit App". After building the image, we run the image inside a container and later pushed the image to the Docker Hub repository. It helps in the production space for deployment. Docker Hub Documentation: https://docs.docker.com/docker-hub/ Streamlit Documentation: https://docs.streamlit.io/ #ai #streamlit #python #docker #artificialintelligence #nlp
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from AI Anytime · AI Anytime · 2 of 60

1 Spelling and Grammar Checking Streamlit App: Building Docker Image
Spelling and Grammar Checking Streamlit App: Building Docker Image
AI Anytime
Spelling and Grammar Checking Streamlit App: Docker Image and Docker Hub
Spelling and Grammar Checking Streamlit App: Docker Image and Docker Hub
AI Anytime
3 Image Caption Generator: Google Colab and Hugging Face
Image Caption Generator: Google Colab and Hugging Face
AI Anytime
4 Low Code/No Code AI Platform Teachable Machine: Brain MRI Image Classification
Low Code/No Code AI Platform Teachable Machine: Brain MRI Image Classification
AI Anytime
5 Low Code/No Code AI Platform Teachable Machine: Testing the Model
Low Code/No Code AI Platform Teachable Machine: Testing the Model
AI Anytime
6 Low Code/No Code AI Platform: Streamlit App for Brain MRI Image Classification
Low Code/No Code AI Platform: Streamlit App for Brain MRI Image Classification
AI Anytime
7 Readme Generator Streamlit App using ChatGPT
Readme Generator Streamlit App using ChatGPT
AI Anytime
8 Generate Minutes of Meeting (MoM) from Video using ChatGPT: AI as an API
Generate Minutes of Meeting (MoM) from Video using ChatGPT: AI as an API
AI Anytime
9 The Great AI Showdown: ChatGPT vs ChatSonic 🔥
The Great AI Showdown: ChatGPT vs ChatSonic 🔥
AI Anytime
10 Generating Transcripts and News Article with Whisper, GPT-3.5, ChatGPT and Streamlit
Generating Transcripts and News Article with Whisper, GPT-3.5, ChatGPT and Streamlit
AI Anytime
11 Toxicity Classifier using Machine Learning and NLP
Toxicity Classifier using Machine Learning and NLP
AI Anytime
12 Toxicity Classifier API using FastAPI
Toxicity Classifier API using FastAPI
AI Anytime
13 Toxicity Classifier Streamlit App
Toxicity Classifier Streamlit App
AI Anytime
14 Low-Code Insurance Prediction with PyCaret and Streamlit
Low-Code Insurance Prediction with PyCaret and Streamlit
AI Anytime
15 Deploy Streamlit Python Application for Free
Deploy Streamlit Python Application for Free
AI Anytime
16 GPT3 Powered Text Analytics App
GPT3 Powered Text Analytics App
AI Anytime
17 AI Image Generation Streamlit App
AI Image Generation Streamlit App
AI Anytime
18 Streamlit and txtai: Building an Abstractive Summarization App in Python
Streamlit and txtai: Building an Abstractive Summarization App in Python
AI Anytime
19 Building a Topic Modeling and Labeling app with Streamlit
Building a Topic Modeling and Labeling app with Streamlit
AI Anytime
20 The Art of AI: Exploring Midjourney, Dall-E, and Lexica
The Art of AI: Exploring Midjourney, Dall-E, and Lexica
AI Anytime
21 Exploring the latest Large Language Models (LLaMA and Alpaca)
Exploring the latest Large Language Models (LLaMA and Alpaca)
AI Anytime
22 Comparing LLMs like GPT-X, LLaMA, and Alpaca: Analyzing the Perplexity Score
Comparing LLMs like GPT-X, LLaMA, and Alpaca: Analyzing the Perplexity Score
AI Anytime
23 GPT-3 powered Q&A App using Langchain, GPT-Index, and Gradio
GPT-3 powered Q&A App using Langchain, GPT-Index, and Gradio
AI Anytime
24 All things #ai . Latest and greatest in AI. #tech #python #chatgpt #youtubeshorts #shorts #gpt3
All things #ai . Latest and greatest in AI. #tech #python #chatgpt #youtubeshorts #shorts #gpt3
AI Anytime
25 Text-to-Video Generation using a Generative AI Model
Text-to-Video Generation using a Generative AI Model
AI Anytime
26 #ai brand name generator. #artificialintelligence #tech #shorts #youtubeshorts #youtube #chatgpt
#ai brand name generator. #artificialintelligence #tech #shorts #youtubeshorts #youtube #chatgpt
AI Anytime
27 Talking AGI with Sam Altman: A Deepfake Showcase
Talking AGI with Sam Altman: A Deepfake Showcase
AI Anytime
28 A conversation with ChatGPT creator Sam Altman. #tech #technology #ai #shorts #viral
A conversation with ChatGPT creator Sam Altman. #tech #technology #ai #shorts #viral
AI Anytime
29 Get to Know Anthropic's Claude: The Ultimate ChatGPT Competitor
Get to Know Anthropic's Claude: The Ultimate ChatGPT Competitor
AI Anytime
30 #shorts #chatgpt #python #datascience #tech #coding
#shorts #chatgpt #python #datascience #tech #coding
AI Anytime
31 Recipe Generator App from Cooking Videos using Whisper and ChatGPT
Recipe Generator App from Cooking Videos using Whisper and ChatGPT
AI Anytime
32 Segment Anything Model by Meta AI: An Image Segmentation Model
Segment Anything Model by Meta AI: An Image Segmentation Model
AI Anytime
33 One of the best #ai #books based on #tensorflow. #tech #coding #shorts #chatgpt #machinelearning
One of the best #ai #books based on #tensorflow. #tech #coding #shorts #chatgpt #machinelearning
AI Anytime
34 Music Generation using Mubert #ai . #music #shorts #youtubeshorts #chatgpt #generativeai
Music Generation using Mubert #ai . #music #shorts #youtubeshorts #chatgpt #generativeai
AI Anytime
35 Image to Text Prompt: Reverse Engineering AI Image Generation
Image to Text Prompt: Reverse Engineering AI Image Generation
AI Anytime
36 Image Generation for #ramadan using #ai. #midjourney #chatgpt #shorts #youtubeshorts #islam
Image Generation for #ramadan using #ai. #midjourney #chatgpt #shorts #youtubeshorts #islam
AI Anytime
37 How to build an AI-ready organization: Cultivating a Data-Driven Culture
How to build an AI-ready organization: Cultivating a Data-Driven Culture
AI Anytime
38 Midjourney: Generate AI-powered Images
Midjourney: Generate AI-powered Images
AI Anytime
39 Getting Started with Graphs: A Beginner's Guide (Part 1 of GNN Series)
Getting Started with Graphs: A Beginner's Guide (Part 1 of GNN Series)
AI Anytime
40 Build India's First ChatGPT like App for Politics: BJP-GPT
Build India's First ChatGPT like App for Politics: BJP-GPT
AI Anytime
41 Meet BJP-GPT.... @AIAnytime  #bjp #news #shorts #tech #chatgpt #ai #youtubeshorts #coding #video
Meet BJP-GPT.... @AIAnytime #bjp #news #shorts #tech #chatgpt #ai #youtubeshorts #coding #video
AI Anytime
42 ChatPDF... #chatgpt  for PDF files. #ai #generativeai #shorts #youtubeshorts #coding #tech #ai
ChatPDF... #chatgpt for PDF files. #ai #generativeai #shorts #youtubeshorts #coding #tech #ai
AI Anytime
43 Free AI Image Generation #ai #chatgpt #coding #tech #shorts #youtubeshorts #shortvideo #generativeai
Free AI Image Generation #ai #chatgpt #coding #tech #shorts #youtubeshorts #shortvideo #generativeai
AI Anytime
44 Transform old photos into Vibrant Memories with Deoldify AI: Build a Streamlit App
Transform old photos into Vibrant Memories with Deoldify AI: Build a Streamlit App
AI Anytime
45 Open Assistant: The Real Open-sourced LLM
Open Assistant: The Real Open-sourced LLM
AI Anytime
46 Thanks to @YannicKilcherand team for the open sourced LLM Open Assistant. #ai #shorts #tech
Thanks to @YannicKilcherand team for the open sourced LLM Open Assistant. #ai #shorts #tech
AI Anytime
47 Search Engine for AI generated images. #ai #tech #technology #generativeai #chatgpt  #shorts #video
Search Engine for AI generated images. #ai #tech #technology #generativeai #chatgpt #shorts #video
AI Anytime
48 Generative AI Video Platform "Synthesia" #shorts #youtubeshorts #ai #tech #chatgpt #generativeai
Generative AI Video Platform "Synthesia" #shorts #youtubeshorts #ai #tech #chatgpt #generativeai
AI Anytime
49 Text to speech Voice AI platform. #shorts #youtubeshorts #ai #tech #technology #python #coding
Text to speech Voice AI platform. #shorts #youtubeshorts #ai #tech #technology #python #coding
AI Anytime
50 Create Amazing Videos with ChatGPT and Pictory: Free AI-powered Video Creation
Create Amazing Videos with ChatGPT and Pictory: Free AI-powered Video Creation
AI Anytime
51 Want to create beautiful video using #chatgpt and #pictory ? Watch the tutorial on channel. #ai
Want to create beautiful video using #chatgpt and #pictory ? Watch the tutorial on channel. #ai
AI Anytime
52 Animate your photos using AI. Bring old family photos to life. #ai #tech #shorts #shortvideo #coding
Animate your photos using AI. Bring old family photos to life. #ai #tech #shorts #shortvideo #coding
AI Anytime
53 Create a PDF Search and Summarization Tool in less than 100 Lines of Code: GPT-Index and Streamlit
Create a PDF Search and Summarization Tool in less than 100 Lines of Code: GPT-Index and Streamlit
AI Anytime
54 Text to Video Generation using Videocrafter: Intuitive Math behind Latent Diffusion Model
Text to Video Generation using Videocrafter: Intuitive Math behind Latent Diffusion Model
AI Anytime
55 Gamma AI: Create presentation PPT easily with #ai . #chatgpt #shorts #shortvideo #tech #coding
Gamma AI: Create presentation PPT easily with #ai . #chatgpt #shorts #shortvideo #tech #coding
AI Anytime
56 Tripnotes: Free AI tools for your trip planning. #ai #chatgpt #shorts #youtubeshorts #video
Tripnotes: Free AI tools for your trip planning. #ai #chatgpt #shorts #youtubeshorts #video
AI Anytime
57 Meet Bark (New Text to Speech Model): Clone Any Voice to Generate Music and Speech
Meet Bark (New Text to Speech Model): Clone Any Voice to Generate Music and Speech
AI Anytime
58 Fliki: The free AI video creation tool. #ai #shorts #shortvideo #youtubeshorts #chatgpt #tech #news
Fliki: The free AI video creation tool. #ai #shorts #shortvideo #youtubeshorts #chatgpt #tech #news
AI Anytime
59 Ask Anything Tool: Chat with Your Video using ChatGPT, MiniGPT4, and StableLM
Ask Anything Tool: Chat with Your Video using ChatGPT, MiniGPT4, and StableLM
AI Anytime
60 HuggingChat: Open Source ChatGPT (Interface and Model)
HuggingChat: Open Source ChatGPT (Interface and Model)
AI Anytime

This video teaches how to build and deploy a Spelling and Grammar Checking Streamlit App using Docker, covering topics such as creating a Docker image, pushing it to Docker Hub, and deploying the application. The video provides a hands-on guide to containerizing and managing applications using Docker and Docker Hub. By following the steps in this video, viewers can learn how to deploy their own applications using Docker and Docker Hub.

Key Takeaways
  1. Create a repository on Docker Hub
  2. Log in to Docker Hub repository using username and password
  3. Push the Docker image to the repository using the Docker Hub CLI
  4. Use the username flag to log in to Docker Hub
  5. Tag the Docker image with the repository name and version
  6. Push the Docker image to Docker Hub
  7. Pull the Docker image from Docker Hub
  8. Use the Docker image in a local machine or application
  9. Pull the Docker image from the repository using sudo
💡 Using Docker and Docker Hub can simplify the process of deploying and managing applications, especially in production environments.

Related AI Lessons

Up next
Containers on Amazon ECS with Mama J
AWS Developers
Watch →