1
00:00:00,000 --> 00:00:00,000
Hello guys.

2
00:00:00,000 --> 00:00:04,000
So we are going to continue a discussion with respect to this, an end to end project.

3
00:00:04,000 --> 00:00:09,000
Uh, now in this video we are going to see how we are going to deploy this entire project in the Streamlit

4
00:00:09,000 --> 00:00:09,000
app.

5
00:00:09,000 --> 00:00:13,000
So Streamlit is a faster way to build and share data apps.

6
00:00:13,000 --> 00:00:17,000
So I have already taken a module, uh, regarding Streamlit, which you will be able to find out in

7
00:00:17,000 --> 00:00:18,000
this course.

8
00:00:18,000 --> 00:00:19,000
So let's go ahead.

9
00:00:19,000 --> 00:00:21,000
And first of all, sign in over here.

10
00:00:21,000 --> 00:00:26,000
Uh, once I sign in, I'll be getting this share.streamlit.io.

11
00:00:27,000 --> 00:00:29,000
And here you can probably go ahead and create your own app.

12
00:00:29,000 --> 00:00:30,000
Right.

13
00:00:30,000 --> 00:00:34,000
But before that I will go ahead and upload all my code in my GitHub.

14
00:00:34,000 --> 00:00:34,000
Right.

15
00:00:34,000 --> 00:00:35,000
So here let me do one thing.

16
00:00:35,000 --> 00:00:36,000
Let me go over here.

17
00:00:37,000 --> 00:00:41,000
Let me reveal in the File Explorer okay.

18
00:00:41,000 --> 00:00:44,000
So this is the file I will quickly go ahead and deploy some of the files.

19
00:00:44,000 --> 00:00:44,000
Right.

20
00:00:44,000 --> 00:00:49,000
So I will take this this okay.

21
00:00:49,000 --> 00:00:54,000
This this this this all the pickle file along with the requirement dot txt.

22
00:00:54,000 --> 00:00:59,000
So you can even commit it directly from the GitHub using the command line.

23
00:00:59,000 --> 00:01:02,000
But uh, I'll just directly copy and paste it over here.

24
00:01:02,000 --> 00:01:05,000
And I hope everybody knows that how to do it right.

25
00:01:05,000 --> 00:01:10,000
Because already GitHub session is already spoken about it.

26
00:01:10,000 --> 00:01:10,000
Right.

27
00:01:10,000 --> 00:01:13,000
We have, we have uh, discussed about it.

28
00:01:13,000 --> 00:01:13,000
Right.

29
00:01:13,000 --> 00:01:16,000
So I'm uploading all this files quickly.

30
00:01:16,000 --> 00:01:19,000
And here I also have my requirement dot txt.

31
00:01:19,000 --> 00:01:24,000
So let's go ahead and put this requirements.txt over here.

32
00:01:24,000 --> 00:01:24,000
Okay.

33
00:01:25,000 --> 00:01:28,000
So yes this commit we will be doing it.

34
00:01:29,000 --> 00:01:32,000
Okay I have to just go ahead and reload it.

35
00:01:32,000 --> 00:01:33,000
Just a second.

36
00:01:33,000 --> 00:01:34,000
Okay.

37
00:01:34,000 --> 00:01:39,000
So here you can see processing your files and all the files is over here you have your Readme file app.py

38
00:01:39,000 --> 00:01:42,000
pickle file everything.

39
00:01:42,000 --> 00:01:43,000
Now let me go over here.

40
00:01:43,000 --> 00:01:48,000
So here you can see that, uh, you have your share.streamlit.io.

41
00:01:48,000 --> 00:01:55,000
Now, Streamlit allows you to probably create your free apps just by integrating with the GitHub.

42
00:01:55,000 --> 00:01:57,000
So I will just go ahead and create click on create app.

43
00:01:58,000 --> 00:02:01,000
It is asking me do you already have have an app.

44
00:02:01,000 --> 00:02:02,000
So I'll say yes I have an app.

45
00:02:02,000 --> 00:02:04,000
It is in GitHub repository.

46
00:02:04,000 --> 00:02:09,000
So I will just go and search for this GitHub URL and I'll paste it over here.

47
00:02:09,000 --> 00:02:10,000
Okay.

48
00:02:10,000 --> 00:02:11,000
Once I paste it.

49
00:02:11,000 --> 00:02:14,000
So branch is mean let me just go ahead and say mean file path.

50
00:02:14,000 --> 00:02:16,000
It should be app dot p y.

51
00:02:16,000 --> 00:02:20,000
And this is the URL that it is basically creating okay.

52
00:02:20,000 --> 00:02:25,000
So step by step we are doing it okay in classification churn this particular dot Streamlit dot app.

53
00:02:25,000 --> 00:02:27,000
So I will go ahead and deploy it.

54
00:02:27,000 --> 00:02:29,000
So there is also something called as advanced token.

55
00:02:30,000 --> 00:02:37,000
Uh if please provide environment variable and other secret key to your app using HTML file format.

56
00:02:37,000 --> 00:02:41,000
The information is encrypted and served security during your runtime.

57
00:02:41,000 --> 00:02:43,000
Learn more secrets in JS.

58
00:02:43,000 --> 00:02:47,000
If you have any secret key, you can probably mention it over here and save it.

59
00:02:47,000 --> 00:02:51,000
Okay, um, that also we will be seeing, uh, as we go ahead.

60
00:02:51,000 --> 00:02:52,000
Okay.

61
00:02:52,000 --> 00:02:54,000
How to probably use some secret keys.

62
00:02:54,000 --> 00:02:56,000
Now I'll go ahead and click on deploy.

63
00:02:56,000 --> 00:03:01,000
Now once I do the deployment automatically see requirement dot txt all the files is there.

64
00:03:02,000 --> 00:03:07,000
This will actually do the deployment do all the installation that is required and it will create the

65
00:03:07,000 --> 00:03:08,000
entire environment over here.

66
00:03:09,000 --> 00:03:16,000
And my entire platform will be ready just in another one 30s to 45 seconds.

67
00:03:16,000 --> 00:03:20,000
And then we are good to go to probably check out our application.

68
00:03:21,000 --> 00:03:23,000
So let's wait for some time.

69
00:03:23,000 --> 00:03:27,000
The reason why we really need to wait for some time is that because it will be doing the pip install

70
00:03:28,000 --> 00:03:30,000
requirement, dot txt all those things?

71
00:03:30,000 --> 00:03:35,000
Um, I'll also show you an example how to probably do it with the environment variables.

72
00:03:35,000 --> 00:03:40,000
But right now let's focus on this and let's see how quickly we will be able to do it okay.

73
00:03:40,000 --> 00:03:44,000
So it shows your app is in the oven so it is getting warm.

74
00:03:44,000 --> 00:03:47,000
In short your entire server is getting warmed.

75
00:03:47,000 --> 00:03:51,000
So we'll wait for some time uh, till this installation takes place.

76
00:03:51,000 --> 00:03:53,000
And our platform is once ready.

77
00:03:53,000 --> 00:03:55,000
And this is the URL which you can also use it.

78
00:03:55,000 --> 00:03:56,000
and you can also access it.

79
00:03:56,000 --> 00:04:01,000
So I think now my app is ready and here you can see it's running.

80
00:04:01,000 --> 00:04:02,000
Stop share.

81
00:04:02,000 --> 00:04:04,000
Everything is properly displayed over here.

82
00:04:04,000 --> 00:04:06,000
I think it should be displayed in short over here.

83
00:04:07,000 --> 00:04:09,000
So let's see.

84
00:04:10,000 --> 00:04:11,000
Yes perfect.

85
00:04:11,000 --> 00:04:12,000
This is my entire app.

86
00:04:12,000 --> 00:04:15,000
And right now it is in the cloud of Streamlit.

87
00:04:15,000 --> 00:04:21,000
Uh, now if I go ahead and select any value that I want, you know, it should be able to directly compute

88
00:04:21,000 --> 00:04:24,000
things right directly just by selecting values.

89
00:04:24,000 --> 00:04:26,000
It should be able to compute.

90
00:04:26,000 --> 00:04:29,000
And this entire thing is working with the help of an okay.

91
00:04:30,000 --> 00:04:31,000
You can select any of the values.

92
00:04:31,000 --> 00:04:34,000
And then you'll be able to get the answer.

93
00:04:34,000 --> 00:04:37,000
And this is with respect to just a runtime right.

94
00:04:37,000 --> 00:04:40,000
So I hope you like this particular video.

95
00:04:40,000 --> 00:04:41,000
Uh this was it.

96
00:04:41,000 --> 00:04:45,000
And this was one amazing end to end project using an, uh, I'll see you all in the next video.

97
00:04:45,000 --> 00:04:46,000
Have a great day.

98
00:04:46,000 --> 00:04:46,000
Thank you.

99
00:04:46,000 --> 00:04:47,000
And take care.

100
00:04:47,000 --> 00:04:47,000
Bye bye.

