Hello guys.
So we are going to continue a discussion with respect to this, an end to end project.
Uh, now in this video we are going to see how we are going to deploy this entire project in the Streamlit
app.
So Streamlit is a faster way to build and share data apps.
So I have already taken a module, uh, regarding Streamlit, which you will be able to find out in
this course.
So let's go ahead.
And first of all, sign in over here.
Uh, once I sign in, I'll be getting this share.streamlit.io.
And here you can probably go ahead and create your own app.
Right.
But before that I will go ahead and upload all my code in my GitHub.
Right.
So here let me do one thing.
Let me go over here.
Let me reveal in the File Explorer okay.
So this is the file I will quickly go ahead and deploy some of the files.
Right.
So I will take this this okay.
This this this this all the pickle file along with the requirement dot txt.
So you can even commit it directly from the GitHub using the command line.
But uh, I'll just directly copy and paste it over here.
And I hope everybody knows that how to do it right.
Because already GitHub session is already spoken about it.
Right.
We have, we have uh, discussed about it.
Right.
So I'm uploading all this files quickly.
And here I also have my requirement dot txt.
So let's go ahead and put this requirements.txt over here.
Okay.
So yes this commit we will be doing it.
Okay I have to just go ahead and reload it.
Just a second.
Okay.
So here you can see processing your files and all the files is over here you have your Readme file app.py
pickle file everything.
Now let me go over here.
So here you can see that, uh, you have your share.streamlit.io.
Now, Streamlit allows you to probably create your free apps just by integrating with the GitHub.
So I will just go ahead and create click on create app.
It is asking me do you already have have an app.
So I'll say yes I have an app.
It is in GitHub repository.
So I will just go and search for this GitHub URL and I'll paste it over here.
Okay.
Once I paste it.
So branch is mean let me just go ahead and say mean file path.
It should be app dot p y.
And this is the URL that it is basically creating okay.
So step by step we are doing it okay in classification churn this particular dot Streamlit dot app.
So I will go ahead and deploy it.
So there is also something called as advanced token.
Uh if please provide environment variable and other secret key to your app using HTML file format.
The information is encrypted and served security during your runtime.
Learn more secrets in JS.
If you have any secret key, you can probably mention it over here and save it.
Okay, um, that also we will be seeing, uh, as we go ahead.
Okay.
How to probably use some secret keys.
Now I'll go ahead and click on deploy.
Now once I do the deployment automatically see requirement dot txt all the files is there.
This will actually do the deployment do all the installation that is required and it will create the
entire environment over here.
And my entire platform will be ready just in another one 30s to 45 seconds.
And then we are good to go to probably check out our application.
So let's wait for some time.
The reason why we really need to wait for some time is that because it will be doing the pip install
requirement, dot txt all those things?
Um, I'll also show you an example how to probably do it with the environment variables.
But right now let's focus on this and let's see how quickly we will be able to do it okay.
So it shows your app is in the oven so it is getting warm.
In short your entire server is getting warmed.
So we'll wait for some time uh, till this installation takes place.
And our platform is once ready.
And this is the URL which you can also use it.
and you can also access it.
So I think now my app is ready and here you can see it's running.
Stop share.
Everything is properly displayed over here.
I think it should be displayed in short over here.
So let's see.
Yes perfect.
This is my entire app.
And right now it is in the cloud of Streamlit.
Uh, now if I go ahead and select any value that I want, you know, it should be able to directly compute
things right directly just by selecting values.
It should be able to compute.
And this entire thing is working with the help of an okay.
You can select any of the values.
And then you'll be able to get the answer.
And this is with respect to just a runtime right.
So I hope you like this particular video.
Uh this was it.
And this was one amazing end to end project using an, uh, I'll see you all in the next video.
Have a great day.
Thank you.
And take care.
Bye bye.