1
00:00:00,000 --> 00:00:00,000
Hello guys.

2
00:00:00,000 --> 00:00:03,000
So we are going to continue the discussion with respect to Python.

3
00:00:03,000 --> 00:00:07,000
And in this video we are going to discuss about a Streamlit app.

4
00:00:08,000 --> 00:00:12,000
Uh, if you don't know about Streamlit, it's a, it's an open source app framework for machine learning

5
00:00:12,000 --> 00:00:14,000
and data science projects.

6
00:00:14,000 --> 00:00:19,000
It allows you to create a beautiful web applications for your machine learning projects altogether.

7
00:00:19,000 --> 00:00:24,000
And the best thing over here is that you even don't need to know HTML, CSS, uh, just by using the

8
00:00:24,000 --> 00:00:28,000
components of Streamlit, you'll be able to create beautiful web pages, right?

9
00:00:28,000 --> 00:00:34,000
And right now, uh, since generative AI is becoming very much famous, Streamlit has been extensively

10
00:00:34,000 --> 00:00:35,000
used over here to create chatbots.

11
00:00:35,000 --> 00:00:38,000
Okay, so we'll be discussing all about this.

12
00:00:38,000 --> 00:00:42,000
Uh, as I said in this video, we will try to understand from basic.

13
00:00:42,000 --> 00:00:46,000
We'll see what are the important components with respect to Streamlit and how you can get started with

14
00:00:46,000 --> 00:00:47,000
Streamlit.

15
00:00:47,000 --> 00:00:47,000
Okay.

16
00:00:47,000 --> 00:00:49,000
So let's quickly go over here.

17
00:00:49,000 --> 00:00:51,000
Uh, so here it is.

18
00:00:51,000 --> 00:00:53,000
I've, uh, given this particular definition.

19
00:00:53,000 --> 00:00:59,000
So it is nothing, but Streamlit is an open source, uh, app framework for machine learning and data

20
00:00:59,000 --> 00:01:00,000
science projects.

21
00:01:00,000 --> 00:01:04,000
It allow you to create beautiful web applications for your machine learning and data science projects

22
00:01:04,000 --> 00:01:06,000
with, uh, Python scripts.

23
00:01:06,000 --> 00:01:07,000
Okay.

24
00:01:07,000 --> 00:01:13,000
So first of all, we will go ahead and, uh, you know, import this library.

25
00:01:13,000 --> 00:01:16,000
And for that I really need to install in the requirement dot txt.

26
00:01:16,000 --> 00:01:18,000
So I'll go ahead and update it over here.

27
00:01:18,000 --> 00:01:21,000
So let's quickly go ahead and do the installation.

28
00:01:21,000 --> 00:01:24,000
So pip install minus r requirements.txt.

29
00:01:24,000 --> 00:01:28,000
Over here you can see that the installation will be taking place.

30
00:01:28,000 --> 00:01:35,000
So here uh once the installation takes place you'll be able to see I will be able to start using this

31
00:01:35,000 --> 00:01:35,000
particular library.

32
00:01:35,000 --> 00:01:41,000
So here let me quickly go ahead and open one of the.py file.

33
00:01:41,000 --> 00:01:48,000
So here, uh, I will just go ahead and write streamlit.py or let me just go ahead and write app.py

34
00:01:48,000 --> 00:01:48,000
file.

35
00:01:49,000 --> 00:01:49,000
Okay.

36
00:01:49,000 --> 00:01:51,000
And this is where I'm going to write my code.

37
00:01:51,000 --> 00:01:54,000
So here you can see the installation has taken place.

38
00:01:54,000 --> 00:01:56,000
Now to start with Streamlit.

39
00:01:56,000 --> 00:02:03,000
Uh, what I'm actually going to do over here is that I'll go ahead and import Streamlit as st.

40
00:02:03,000 --> 00:02:03,000
Okay.

41
00:02:03,000 --> 00:02:06,000
So we are going to import this as SC.

42
00:02:08,000 --> 00:02:11,000
St is the alias and this is the library that we are using.

43
00:02:11,000 --> 00:02:14,000
Along with this, let's go ahead and import pandas as PD.

44
00:02:14,000 --> 00:02:15,000
I'll be importing pandas.

45
00:02:15,000 --> 00:02:20,000
I will also import numpy so that I'll be using some of the basic applications.

46
00:02:21,000 --> 00:02:27,000
And in order to start with the Streamlit web application or here, I will first of all show you some

47
00:02:27,000 --> 00:02:28,000
of the important components.

48
00:02:28,000 --> 00:02:31,000
One of the component is nothing but title, right?

49
00:02:31,000 --> 00:02:38,000
So let me just go ahead and write this title over here, and I will just use this s t dot title, okay.

50
00:02:38,000 --> 00:02:40,000
S t dot title.

51
00:02:40,000 --> 00:02:45,000
And let me just go ahead and write something like hello Streamlit.

52
00:02:45,000 --> 00:02:46,000
Okay.

53
00:02:47,000 --> 00:02:49,000
Now we will go ahead and execute this.

54
00:02:49,000 --> 00:02:56,000
So in order to execute it, you know that this app Dot Pi is inside your 14th Streamlit folder and it

55
00:02:56,000 --> 00:02:58,000
is, which is inside this entire Python folder.

56
00:02:58,000 --> 00:03:02,000
Right now I'm in my Python, so I'll go ahead and write CD 14 Streamlit.

57
00:03:03,000 --> 00:03:05,000
And in order to run this app dot pi file.

58
00:03:05,000 --> 00:03:12,000
Right I will just go ahead and write streamlit run app dot pi.

59
00:03:13,000 --> 00:03:19,000
So once I execute it here, you will be able to see that I will be getting this option, which is called

60
00:03:19,000 --> 00:03:20,000
as Allow access.

61
00:03:20,000 --> 00:03:25,000
So I'll click on this and my web browser will get loaded which will look something like this.

62
00:03:25,000 --> 00:03:29,000
So here is the default message that is nothing but the title.

63
00:03:30,000 --> 00:03:32,000
And the best thing over here is that I just used.

64
00:03:32,000 --> 00:03:35,000
I did not write any H1 tag or anything as such.

65
00:03:35,000 --> 00:03:38,000
I just use this h2.sd dot title component.

66
00:03:38,000 --> 00:03:44,000
Okay, and if I go ahead and inspect this, you'll be able to see that this will automatically get converted

67
00:03:44,000 --> 00:03:45,000
into an H1 tag.

68
00:03:45,000 --> 00:03:45,000
Right.

69
00:03:45,000 --> 00:03:50,000
And these are some of the Div containers which will be created by that same code that we have seen.

70
00:03:50,000 --> 00:03:51,000
Right.

71
00:03:51,000 --> 00:03:53,000
That is SD dot title okay.

72
00:03:53,000 --> 00:03:55,000
Now this is very much easy.

73
00:03:55,000 --> 00:03:56,000
Let me just close this.

74
00:03:56,000 --> 00:03:59,000
And here you can see by default it will be running in this localhost.

75
00:03:59,000 --> 00:04:01,000
And the port is 8501.

76
00:04:02,000 --> 00:04:06,000
So this is how you run the Streamlit app by just writing Streamlit run app.py.

77
00:04:07,000 --> 00:04:07,000
Okay.

78
00:04:07,000 --> 00:04:12,000
Now, uh, let's go to the next step and, uh, let's display a simple text.

79
00:04:12,000 --> 00:04:16,000
So here I want to display a simple text.

80
00:04:17,000 --> 00:04:17,000
Okay.

81
00:04:18,000 --> 00:04:21,000
Now this simple text I can go ahead and write it in my page.

82
00:04:21,000 --> 00:04:23,000
So I'll go ahead and write SD dot write.

83
00:04:24,000 --> 00:04:29,000
And I'll say, hey this is a this is a simple text.

84
00:04:29,000 --> 00:04:30,000
Okay.

85
00:04:31,000 --> 00:04:36,000
Uh, this is how we write in the page, uh, of the web app that we are specifically creating with the

86
00:04:36,000 --> 00:04:37,000
help of Streamlit.

87
00:04:37,000 --> 00:04:44,000
Okay, now let's go ahead and create a simple data frame, and we will try to, uh, print this data

88
00:04:44,000 --> 00:04:44,000
frame.

89
00:04:44,000 --> 00:04:45,000
Okay.

90
00:04:45,000 --> 00:04:51,000
So here I will just go ahead and write df pd dot data frame.

91
00:04:51,000 --> 00:04:53,000
So I have my first column, I have my second column.

92
00:04:53,000 --> 00:04:55,000
And these are all my information okay.

93
00:04:55,000 --> 00:04:57,000
Now let's go ahead and display this data frame.

94
00:04:58,000 --> 00:05:02,000
Display the data frame okay.

95
00:05:02,000 --> 00:05:06,000
Now displaying the data frame again I can go ahead and write SD dot write.

96
00:05:06,000 --> 00:05:10,000
And I'll say hey here is the data frame okay.

97
00:05:10,000 --> 00:05:12,000
Let's see how the data frame will get displayed.

98
00:05:12,000 --> 00:05:14,000
So I'll go ahead and write SD dot write again.

99
00:05:14,000 --> 00:05:18,000
So write is a function which will be able to display this particular data frame okay.

100
00:05:18,000 --> 00:05:25,000
So once I display this uh, the next thing what I can do is that I can also create my line chart.

101
00:05:25,000 --> 00:05:25,000
Okay.

102
00:05:25,000 --> 00:05:27,000
I want to probably go ahead and create a line chart.

103
00:05:27,000 --> 00:05:32,000
So I'll go ahead and create a line chart okay.

104
00:05:32,000 --> 00:05:35,000
Now in order to create a line chart again we have to use St.

105
00:05:36,000 --> 00:05:39,000
And then we have something called as st dot.

106
00:05:40,000 --> 00:05:42,000
Here you can see line chart link button.

107
00:05:42,000 --> 00:05:42,000
Everything is there.

108
00:05:42,000 --> 00:05:48,000
So we will go ahead and use my line chart and let's create a chart data okay.

109
00:05:48,000 --> 00:05:55,000
So this will basically be my chart underscore data I will create some data over here some basic data

110
00:05:55,000 --> 00:05:58,000
I'll go ahead and write hey this is nothing but PD dot data frame.

111
00:05:58,000 --> 00:06:00,000
And let's go ahead and create it okay.

112
00:06:00,000 --> 00:06:10,000
So PD dot data frame here I will say hey go ahead and uh use NP dot random dot rand n random numbers

113
00:06:10,000 --> 00:06:11,000
use 20 comma three.

114
00:06:11,000 --> 00:06:14,000
That basically means how much, how many rows and how many columns.

115
00:06:14,000 --> 00:06:16,000
That is three columns and 20 rows.

116
00:06:16,000 --> 00:06:17,000
Okay.

117
00:06:17,000 --> 00:06:19,000
And then I will just go ahead and create my columns also.

118
00:06:19,000 --> 00:06:20,000
So columns will be nothing.

119
00:06:20,000 --> 00:06:27,000
But since I have only three columns so I will go ahead and write a comma b comma c okay.

120
00:06:28,000 --> 00:06:32,000
So once I execute this uh I will be able to see this line chart.

121
00:06:32,000 --> 00:06:35,000
And inside this line chart, this will be nothing but my chart data.

122
00:06:36,000 --> 00:06:38,000
So let's go ahead and execute it.

123
00:06:38,000 --> 00:06:42,000
So I will just go ahead and delete this and let's save this.

124
00:06:42,000 --> 00:06:45,000
And here I'm just going to run Streamlit run App.py.

125
00:06:46,000 --> 00:06:50,000
So once I execute it uh, this is my web browser that has got opened.

126
00:06:50,000 --> 00:06:54,000
And uh, here you can see how beautiful chart it is being able to display.

127
00:06:54,000 --> 00:06:57,000
This is my data frame altogether, right?

128
00:06:57,000 --> 00:06:58,000
I can also expand it.

129
00:06:58,000 --> 00:06:59,000
I can also download it.

130
00:06:59,000 --> 00:07:00,000
Right?

131
00:07:00,000 --> 00:07:03,000
If I download it, I can download it in the form of CSV file.

132
00:07:03,000 --> 00:07:07,000
So here is also on my chart which looks really awesome.

133
00:07:07,000 --> 00:07:12,000
I can save this as a SMS or svg png file right?

134
00:07:12,000 --> 00:07:17,000
You can also open in Mega editor, compiled view source anything that you want.

135
00:07:17,000 --> 00:07:20,000
Okay, so this also looks, uh really good.

136
00:07:20,000 --> 00:07:22,000
And here you'll be able to see all this particular information.

137
00:07:22,000 --> 00:07:23,000
I can also zoom in.

138
00:07:23,000 --> 00:07:24,000
Zoom out okay.

139
00:07:24,000 --> 00:07:30,000
Now this is a very easy way of creating this quick application.

140
00:07:30,000 --> 00:07:32,000
And here I do not even have to use much HTML.

141
00:07:32,000 --> 00:07:33,000
Right.

142
00:07:33,000 --> 00:07:38,000
So this really becomes very much easy for a back end developer who really wants to develop a quick POC

143
00:07:38,000 --> 00:07:41,000
or interactive POC and probably show it in front of anyone.

144
00:07:41,000 --> 00:07:42,000
Right?

145
00:07:42,000 --> 00:07:44,000
So, uh, this was one example.

146
00:07:44,000 --> 00:07:46,000
Uh, let me just go ahead and play with some more examples.

147
00:07:46,000 --> 00:07:47,000
Okay.

148
00:07:47,000 --> 00:07:53,000
So I will close over here and, uh, this time I will I will just go ahead and create one more file.

149
00:07:53,000 --> 00:07:55,000
And this time we are going to work with widgets.

150
00:07:56,000 --> 00:07:57,000
widgets.py file.

151
00:07:57,000 --> 00:07:58,000
Okay.

152
00:07:58,000 --> 00:08:03,000
Now with respect to this widgets, uh we'll create uh some more widgets.

153
00:08:03,000 --> 00:08:05,000
We'll use some more widgets.

154
00:08:05,000 --> 00:08:10,000
Uh, so here uh, widgets basically means uh we will try to create some more interactive application.

155
00:08:10,000 --> 00:08:14,000
And for that Streamlit also provides some amazing basic widgets.

156
00:08:14,000 --> 00:08:22,000
Okay, so first of all I will go ahead and import Streamlit Streamlit as st.

157
00:08:22,000 --> 00:08:22,000
Okay.

158
00:08:23,000 --> 00:08:30,000
So once we define this uh okay then I will just go ahead and write my St dot title.

159
00:08:31,000 --> 00:08:33,000
So HD street dot title.

160
00:08:33,000 --> 00:08:34,000
Let's say Streamlit.

161
00:08:36,000 --> 00:08:39,000
Text input okay.

162
00:08:39,000 --> 00:08:42,000
Like we have an option of putting text input.

163
00:08:42,000 --> 00:08:44,000
So let's say I will create a variable name.

164
00:08:44,000 --> 00:08:47,000
And I will go ahead and write street dot text underscore input okay.

165
00:08:47,000 --> 00:08:51,000
So this basically means I can give an input in my text box.

166
00:08:51,000 --> 00:08:53,000
Let's say here I'm going to say end.

167
00:08:54,000 --> 00:08:56,000
Enter your name okay.

168
00:08:56,000 --> 00:09:03,000
Now, if I execute this over here, you'll be able to see that, uh, I will just go ahead and say if

169
00:09:03,000 --> 00:09:04,000
name colon.

170
00:09:04,000 --> 00:09:04,000
Okay.

171
00:09:05,000 --> 00:09:07,000
That basically what does this basically mean.

172
00:09:07,000 --> 00:09:07,000
Right.

173
00:09:07,000 --> 00:09:14,000
If name colon that uh, see when I run this particular uh widget.py file, right when it opens the Streamlit

174
00:09:14,000 --> 00:09:16,000
app, it will initially show me a text box.

175
00:09:16,000 --> 00:09:21,000
And if I'm putting some information and if I'm pressing enter, that entire information will get saved

176
00:09:21,000 --> 00:09:23,000
in this particular name variable.

177
00:09:23,000 --> 00:09:28,000
So if I go ahead and write if name then here you can see s t dot write.

178
00:09:29,000 --> 00:09:34,000
And here I'm going to just go ahead and call this okay.

179
00:09:34,000 --> 00:09:36,000
So let's say I'll go ahead and write hello.

180
00:09:36,000 --> 00:09:40,000
And this should be my whatever name that I'm actually giving.

181
00:09:40,000 --> 00:09:42,000
And it should display this right now.

182
00:09:42,000 --> 00:09:44,000
Let's run this okay.

183
00:09:44,000 --> 00:09:45,000
Here.

184
00:09:45,000 --> 00:09:49,000
This time I'll go ahead and write Python widgets.py file.

185
00:09:49,000 --> 00:09:50,000
Okay.

186
00:09:50,000 --> 00:09:52,000
So if I go ahead and execute it.

187
00:09:52,000 --> 00:09:53,000
Uh oh.

188
00:09:53,000 --> 00:09:53,000
Sorry.

189
00:09:53,000 --> 00:09:56,000
It should not write Python but instead I should write Streamlit.

190
00:09:56,000 --> 00:10:00,000
Run widgets.py.

191
00:10:01,000 --> 00:10:05,000
This is the command that we usually use in order to run this particular file.

192
00:10:05,000 --> 00:10:07,000
Okay, so let me repeat it.

193
00:10:07,000 --> 00:10:11,000
Streamlit run widgets.py.

194
00:10:11,000 --> 00:10:16,000
So once I execute this here, you'll be able to see that I'm getting this particular information.

195
00:10:16,000 --> 00:10:21,000
Now here when I as soon as I write my name Kirshnik I press enter.

196
00:10:22,000 --> 00:10:26,000
So here you can see that, uh, Streamlit has no attribute, right.

197
00:10:26,000 --> 00:10:30,000
So that is the problem because I wrote double two doubles, two doubles.

198
00:10:30,000 --> 00:10:31,000
Right.

199
00:10:31,000 --> 00:10:34,000
So I will quickly go ahead and fix this issue.

200
00:10:34,000 --> 00:10:37,000
Now, let me run this again.

201
00:10:37,000 --> 00:10:40,000
And here you have my browser.

202
00:10:40,000 --> 00:10:44,000
Now let me go ahead and write my name Krish Nayak okay.

203
00:10:45,000 --> 00:10:46,000
And let's press enter.

204
00:10:46,000 --> 00:10:49,000
So here you can see this is the message that is getting displayed.

205
00:10:49,000 --> 00:10:49,000
Perfect.

206
00:10:49,000 --> 00:10:52,000
Now let me do one thing over here.

207
00:10:52,000 --> 00:10:54,000
Uh, here.

208
00:10:54,000 --> 00:10:56,000
I'm not going to stop over here.

209
00:10:56,000 --> 00:10:56,000
Okay?

210
00:10:56,000 --> 00:10:58,000
I will also try to use some kind of slider.

211
00:10:59,000 --> 00:11:04,000
Now, in order to use the slider, uh, let me do one thing over here.

212
00:11:04,000 --> 00:11:09,000
Uh, I will just go ahead and say, hey, uh, let's create a slider.

213
00:11:09,000 --> 00:11:14,000
So for creating a slider, I will say, hey, let's create a variable called as age.

214
00:11:14,000 --> 00:11:16,000
I'll say TX dot slider.

215
00:11:16,000 --> 00:11:22,000
And with respect to this particular slider, this is again another component that we can use over here,

216
00:11:22,000 --> 00:11:23,000
which will be an interactive component.

217
00:11:23,000 --> 00:11:29,000
And here I'll say, hey, select your age and the age value will be between 0 to 100.

218
00:11:29,000 --> 00:11:35,000
And here you can see the third parameter that I have uh uh that I'm actually giving is 25.

219
00:11:35,000 --> 00:11:35,000
Okay.

220
00:11:35,000 --> 00:11:37,000
We'll run this and then you'll be able to understand it okay.

221
00:11:38,000 --> 00:11:44,000
As soon as I probably select this, uh, what I will do is that I will just go ahead and write SD dot

222
00:11:44,000 --> 00:11:44,000
write.

223
00:11:44,000 --> 00:11:46,000
Your age is something like this.

224
00:11:46,000 --> 00:11:51,000
Okay, now let's go ahead and reload this okay.

225
00:11:51,000 --> 00:11:53,000
So here you can see select your age.

226
00:11:53,000 --> 00:11:56,000
So once I go ahead and update this.

227
00:11:56,000 --> 00:11:59,000
So minimum is 25 that I can select over here.

228
00:12:00,000 --> 00:12:04,000
And uh initially if I reload this you will be able to see that it is pointing to 25.

229
00:12:05,000 --> 00:12:05,000
Right.

230
00:12:05,000 --> 00:12:06,000
I can also reduce it.

231
00:12:06,000 --> 00:12:08,000
But minimum first of all it shows 25.

232
00:12:08,000 --> 00:12:13,000
Then I can select any age and automatically this updation will basically happen.

233
00:12:14,000 --> 00:12:18,000
Now this is one of the amazing component that is probably present over there.

234
00:12:18,000 --> 00:12:21,000
There is also a component which is called as select box okay.

235
00:12:22,000 --> 00:12:26,000
Now in order to select box is just like using a drop down box okay.

236
00:12:26,000 --> 00:12:34,000
So here you will be able to see that to in order to use the select box, let's say I will go ahead and

237
00:12:34,000 --> 00:12:37,000
create this something like this okay.

238
00:12:38,000 --> 00:12:40,000
So I'll say hey this is my options.

239
00:12:40,000 --> 00:12:43,000
I want to go with Python Java C, C plus plus JavaScript.

240
00:12:43,000 --> 00:12:46,000
So this will be a list of options I'll say S3 dot select box.

241
00:12:46,000 --> 00:12:50,000
Choose your favorite programming language and I'll give the options over here.

242
00:12:50,000 --> 00:12:51,000
So this will basically be my choice.

243
00:12:51,000 --> 00:12:54,000
And here you can go ahead and write that particular choice.

244
00:12:54,000 --> 00:12:55,000
So I'll save it.

245
00:12:55,000 --> 00:12:57,000
Let's go ahead and execute it again.

246
00:12:58,000 --> 00:12:59,000
So I will reload it.

247
00:12:59,000 --> 00:13:04,000
So here you can see hey I can go ahead and select any of this particular language like JavaScript and

248
00:13:04,000 --> 00:13:06,000
automatically are able to write it.

249
00:13:06,000 --> 00:13:13,000
So this looks like a very good form because I'm, I'm not writing much, uh, much information over

250
00:13:13,000 --> 00:13:13,000
here.

251
00:13:13,000 --> 00:13:13,000
Right.

252
00:13:13,000 --> 00:13:14,000
It's it's very much simple.

253
00:13:14,000 --> 00:13:18,000
It's very much easy that I'm able to get this entire information right.

254
00:13:19,000 --> 00:13:21,000
Uh, let's try one more thing.

255
00:13:21,000 --> 00:13:21,000
Okay?

256
00:13:21,000 --> 00:13:28,000
Let's try, uh, uh, data frame, uh, in short, and, uh, let's see how it gets displayed.

257
00:13:29,000 --> 00:13:32,000
So here I've already shown you the data frame anyhow.

258
00:13:32,000 --> 00:13:34,000
So let me just take this particular data.

259
00:13:34,000 --> 00:13:40,000
I will go ahead and import pandas as PD import pandas as PD.

260
00:13:40,000 --> 00:13:40,000
Okay.

261
00:13:40,000 --> 00:13:47,000
So the main thing over here is that they are lot of interactive components that are available.

262
00:13:47,000 --> 00:13:50,000
So here I'm creating my data, I'm converting that into a data frame.

263
00:13:50,000 --> 00:13:52,000
And I'm writing S3 dot write okay.

264
00:13:52,000 --> 00:13:54,000
So again if I go ahead and reload it.

265
00:13:56,000 --> 00:13:57,000
So this is my entire data frame.

266
00:13:57,000 --> 00:14:01,000
And you can actually see this particular data frame right.

267
00:14:01,000 --> 00:14:06,000
So like this I can quickly go ahead and create my uh entire form itself.

268
00:14:06,000 --> 00:14:06,000
Okay.

269
00:14:07,000 --> 00:14:11,000
Um, I also have an option to probably create an upload button.

270
00:14:11,000 --> 00:14:14,000
Okay, for for the file upload.

271
00:14:14,000 --> 00:14:20,000
So here what I will do in order to create an upload button, I will go ahead and write uploaded underscore

272
00:14:20,000 --> 00:14:20,000
file.

273
00:14:20,000 --> 00:14:22,000
So this will be my another component.

274
00:14:22,000 --> 00:14:27,000
And I'll just go ahead and write s t dot file uploader.

275
00:14:28,000 --> 00:14:33,000
And I will say hey choose a CSV file okay.

276
00:14:34,000 --> 00:14:38,000
Choose a CSV file and I can basically go ahead and choose this.

277
00:14:38,000 --> 00:14:41,000
And I'll say, hey, let's keep that, uh, type as CSV.

278
00:14:42,000 --> 00:14:45,000
If I want different other files, I can probably keep this in the form of list.

279
00:14:45,000 --> 00:14:46,000
It is up to you.

280
00:14:46,000 --> 00:14:47,000
Okay.

281
00:14:47,000 --> 00:14:50,000
Um, and you will be able to do this right.

282
00:14:51,000 --> 00:14:59,000
So finally, if you go ahead and see if uploaded file is not none.

283
00:14:59,000 --> 00:15:01,000
Okay, I can go ahead and write.

284
00:15:01,000 --> 00:15:10,000
DF is equal to PD, dot read underscore csv and I will give my uploaded file over here.

285
00:15:10,000 --> 00:15:15,000
And I will just display that particular uploaded uploaded file in the same page.

286
00:15:15,000 --> 00:15:16,000
That is nothing but DF.

287
00:15:16,000 --> 00:15:19,000
Okay, let me do one thing quickly.

288
00:15:21,000 --> 00:15:21,000
Mhm.

289
00:15:22,000 --> 00:15:24,000
I will save this entire CSV.

290
00:15:25,000 --> 00:15:25,000
Okay.

291
00:15:25,000 --> 00:15:29,000
So I'll say hey DF dot two underscore CSV.

292
00:15:29,000 --> 00:15:35,000
And let me just save it as uh sample data dot csv.

293
00:15:36,000 --> 00:15:38,000
The reason is that I just wanted one sample data.

294
00:15:38,000 --> 00:15:40,000
That is the reason okay.

295
00:15:40,000 --> 00:15:41,000
So I will go ahead and execute it.

296
00:15:41,000 --> 00:15:44,000
So this may have got created.

297
00:15:44,000 --> 00:15:49,000
Uh let's go ahead and use this particular CSV file.

298
00:15:49,000 --> 00:15:58,000
So I will go to this particular website and I'll go back to over here.

299
00:15:58,000 --> 00:15:59,000
I'll click on browse.

300
00:15:59,000 --> 00:16:04,000
I will go inside this and let's go ahead and upload this.

301
00:16:04,000 --> 00:16:08,000
So once I open it here you can see that I'm able to display it right.

302
00:16:08,000 --> 00:16:09,000
Which is again good.

303
00:16:10,000 --> 00:16:10,000
Uh altogether.

304
00:16:10,000 --> 00:16:11,000
Right.

305
00:16:11,000 --> 00:16:13,000
So these are some of the important components.

306
00:16:13,000 --> 00:16:16,000
Again, I would suggest go to streamlit.io.

307
00:16:16,000 --> 00:16:19,000
I think this is the most easiest framework that I've seen.

308
00:16:19,000 --> 00:16:23,000
There are a lot of components which you can go ahead and check it out.

309
00:16:23,000 --> 00:16:27,000
And uh, as you'll be seeing that if I create any videos, right, let's say over here, I want to play

310
00:16:27,000 --> 00:16:31,000
with text, I can go ahead and play with text images, videos.

311
00:16:31,000 --> 00:16:32,000
So charts, widgets.

312
00:16:32,000 --> 00:16:34,000
So I've just discussed about widgets.

313
00:16:34,000 --> 00:16:35,000
They are also charts.

314
00:16:35,000 --> 00:16:37,000
You can use different different charts.

315
00:16:37,000 --> 00:16:39,000
You can use different different graphs.

316
00:16:39,000 --> 00:16:41,000
You can even use page navigation.

317
00:16:41,000 --> 00:16:46,000
So in short just by using this you'll be able to create your entire, you know, the web application

318
00:16:46,000 --> 00:16:47,000
that you actually require.

319
00:16:48,000 --> 00:16:50,000
So, uh, this was it.

320
00:16:50,000 --> 00:16:55,000
Uh, now in my next video, what I'm actually going to do is that I'll just try to develop a machine

321
00:16:55,000 --> 00:16:59,000
learning application and interactive machine learning application and show it to you.

322
00:16:59,000 --> 00:16:59,000
Okay.

323
00:16:59,000 --> 00:17:03,000
I know, uh, if you have not learned about machine learning, don't worry.

324
00:17:03,000 --> 00:17:07,000
But just to give you an example, how does the Streamlit app looks like with the help of a end to end

325
00:17:07,000 --> 00:17:08,000
machine learning project?

326
00:17:08,000 --> 00:17:10,000
I really wanted to show you that.

327
00:17:10,000 --> 00:17:10,000
Okay.

328
00:17:11,000 --> 00:17:14,000
Um, but again, uh, if you don't know any machine learning algorithms.

329
00:17:14,000 --> 00:17:19,000
So I would suggest please go ahead and check some of the algorithms and automatically you'll be able

330
00:17:19,000 --> 00:17:20,000
to understand it.

331
00:17:20,000 --> 00:17:20,000
Okay.

332
00:17:20,000 --> 00:17:22,000
So yes, this was it for my side.

333
00:17:22,000 --> 00:17:23,000
I will see you all in the next video.

334
00:17:23,000 --> 00:17:24,000
Thank you.

