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 our deployment series already.

3
00:00:03,000 --> 00:00:08,000
In our previous video, I have already shown you how you can deploy your generative AI application with

4
00:00:08,000 --> 00:00:11,000
Streamlit web app with the help of Streamlit Cloud.

5
00:00:11,000 --> 00:00:13,000
And probably the steps were quite easy.

6
00:00:13,000 --> 00:00:17,000
We just need to put all the code in our GitHub repository.

7
00:00:17,000 --> 00:00:20,000
And from this we just need to connect it in our Streamlit lab.

8
00:00:21,000 --> 00:00:27,000
Now, uh, Streamlit lab or Streamlit Cloud, you can basically say in that way, now I am going to

9
00:00:27,000 --> 00:00:32,000
deploy this entire code solution in hugging face spaces.

10
00:00:32,000 --> 00:00:32,000
Okay.

11
00:00:32,000 --> 00:00:39,000
Now spaces actually provides you, uh, you will be able to probably deploy your generative AI applications

12
00:00:39,000 --> 00:00:42,000
over here or any machine learning applications over here.

13
00:00:42,000 --> 00:00:47,000
So step by step, we will probably go ahead and I'll try to show you completely in a very much easy

14
00:00:47,000 --> 00:00:48,000
way here.

15
00:00:48,000 --> 00:00:53,000
If you just go in spaces, you'll be able to see many, many, many use cases which are specifically

16
00:00:53,000 --> 00:00:53,000
deployed.

17
00:00:53,000 --> 00:00:54,000
And you can go ahead and check it out.

18
00:00:54,000 --> 00:00:56,000
And you can also check out the code.

19
00:00:56,000 --> 00:00:56,000
Right.

20
00:00:57,000 --> 00:01:00,000
So, uh, let's go ahead and do this.

21
00:01:00,000 --> 00:01:05,000
Uh, there are many steps that it will be involved while probably deploying this entire solution in

22
00:01:05,000 --> 00:01:06,000
the hugging face spaces.

23
00:01:06,000 --> 00:01:10,000
Over here we are also going to use something called as GitHub action.

24
00:01:10,000 --> 00:01:10,000
Okay.

25
00:01:10,000 --> 00:01:19,000
So here if I go ahead and search for hugging face space okay GitHub action okay.

26
00:01:19,000 --> 00:01:23,000
So here you'll be able to see managing spaces with GitHub action.

27
00:01:23,000 --> 00:01:27,000
So if you probably go ahead and see this repository this is the code that we are specifically going

28
00:01:27,000 --> 00:01:28,000
to use.

29
00:01:28,000 --> 00:01:30,000
So we will be creating an YAML file.

30
00:01:30,000 --> 00:01:36,000
And we will say hey you need to push in this particular hugging face space and probably do the deployment

31
00:01:36,000 --> 00:01:36,000
okay.

32
00:01:36,000 --> 00:01:41,000
So here I will be going ahead and showing you step by step how this things can be implemented.

33
00:01:41,000 --> 00:01:45,000
So first of all, I will go ahead and create a new file inside this repository.

34
00:01:45,000 --> 00:01:50,000
Now first of all here I will be using one folder called as dot GitHub.

35
00:01:50,000 --> 00:01:56,000
So usually whenever you create a CI CD pipeline you really need to create a YAML file.

36
00:01:56,000 --> 00:02:01,000
And the entire configuration inside that YAML file will actually tell you that how you're going to push

37
00:02:01,000 --> 00:02:03,000
the code in the deployment servers.

38
00:02:03,000 --> 00:02:04,000
Right.

39
00:02:04,000 --> 00:02:10,000
So for that I will be creating this dot GitHub slash workflow okay.

40
00:02:10,000 --> 00:02:11,000
Workflows.

41
00:02:12,000 --> 00:02:14,000
So this is the folder that I'm actually going to create.

42
00:02:14,000 --> 00:02:19,000
And inside this I'm going to create this main dot YAML file okay.

43
00:02:19,000 --> 00:02:24,000
Now with respect to this main dot YAML file, what I'm actually going to do I will go ahead and copy

44
00:02:24,000 --> 00:02:25,000
this entire thing.

45
00:02:25,000 --> 00:02:29,000
So here you will be able to see this is the important code that I will be copying.

46
00:02:29,000 --> 00:02:30,000
Right.

47
00:02:30,000 --> 00:02:33,000
So this code is responsible.

48
00:02:33,000 --> 00:02:40,000
And as soon as we do the commit in the GitHub repository, this will be pushing our entire code repository

49
00:02:40,000 --> 00:02:42,000
into this particular hugging face token.

50
00:02:42,000 --> 00:02:43,000
Okay.

51
00:02:43,000 --> 00:02:45,000
So hugging face uh space okay.

52
00:02:45,000 --> 00:02:49,000
Here, uh, please observe each and every thing carefully.

53
00:02:49,000 --> 00:02:51,000
What is the necessary information here.

54
00:02:51,000 --> 00:02:53,000
You will be able to see it out okay.

55
00:02:53,000 --> 00:02:55,000
Okay, so let me just do one thing.

56
00:02:55,000 --> 00:02:57,000
Let me just hide this if possible.

57
00:02:57,000 --> 00:03:02,000
So first of all, over here, you'll be able to see that, uh, whenever we work with GitHub action,

58
00:03:02,000 --> 00:03:05,000
most of the parameters will be in the form of key value pairs.

59
00:03:05,000 --> 00:03:08,000
So this is nothing but syncing to Huggingface hub.

60
00:03:08,000 --> 00:03:09,000
We are pushing the branch.

61
00:03:09,000 --> 00:03:15,000
Main job is basically to run this entire thing in the ubuntu latest version.

62
00:03:15,000 --> 00:03:20,000
We will check out all the code and finally we'll push this to the hub, which is my Huggingface hub,

63
00:03:20,000 --> 00:03:24,000
and we will be using some secret token that is our F underscore token.

64
00:03:24,000 --> 00:03:28,000
I will show you how to probably create this particular token and where we need to push.

65
00:03:28,000 --> 00:03:31,000
We need to push on this specific space ID okay.

66
00:03:31,000 --> 00:03:33,000
Now how to get this space ID.

67
00:03:33,000 --> 00:03:34,000
I will be talking about it.

68
00:03:34,000 --> 00:03:35,000
Okay.

69
00:03:35,000 --> 00:03:40,000
So let's go back to our huggingface space and let us go ahead and create our new space here.

70
00:03:40,000 --> 00:03:47,000
I'm just going to write, um search underscore engine underscore LM okay.

71
00:03:47,000 --> 00:03:53,000
So this will basically be my, uh, application name over here, which I'm actually creating in my space.

72
00:03:53,000 --> 00:03:56,000
After that, I will go ahead and select a license.

73
00:03:56,000 --> 00:03:58,000
Let's say I go ahead and select Apache 2.0.

74
00:03:58,000 --> 00:04:02,000
I know this is a Streamlit app, but other than this it is a for uh, for Grady.

75
00:04:02,000 --> 00:04:04,000
Also it is supported for static templates.

76
00:04:04,000 --> 00:04:07,000
Also it is supported if you really want to work with Dockers.

77
00:04:07,000 --> 00:04:08,000
It is also supporting that.

78
00:04:08,000 --> 00:04:09,000
Right.

79
00:04:09,000 --> 00:04:13,000
And here you have a space hardware free by default.

80
00:04:13,000 --> 00:04:18,000
They'll give you CPU basics with, uh, two Vcpu and 16 GB free Ram.

81
00:04:18,000 --> 00:04:19,000
Okay.

82
00:04:19,000 --> 00:04:21,000
You can actually go ahead and use this.

83
00:04:21,000 --> 00:04:24,000
This will be more than sufficient to go ahead with right then.

84
00:04:24,000 --> 00:04:29,000
Uh, whether you want to make this space public or private, let's say that I want to go ahead and probably

85
00:04:29,000 --> 00:04:31,000
create this particular space in public.

86
00:04:31,000 --> 00:04:33,000
So I will go ahead and click on Create Space.

87
00:04:33,000 --> 00:04:34,000
Okay.

88
00:04:34,000 --> 00:04:39,000
As soon as I probably click on Create Space here, you can see that I can clone this entire thing and

89
00:04:39,000 --> 00:04:40,000
I can start working.

90
00:04:40,000 --> 00:04:40,000
Okay.

91
00:04:40,000 --> 00:04:45,000
If you want to go ahead and see how many files are basically present over here inside, none of the

92
00:04:45,000 --> 00:04:47,000
files are specifically present.

93
00:04:47,000 --> 00:04:52,000
So what I'm actually going to do from my GitHub, whatever files is there, I need to push to this particular

94
00:04:52,000 --> 00:04:56,000
Huggingface hub right where this all files will be present.

95
00:04:56,000 --> 00:05:03,000
Right now, the most important thing is that how do I generate this h.f underscore token or this particular

96
00:05:03,000 --> 00:05:04,000
token.

97
00:05:04,000 --> 00:05:04,000
Right.

98
00:05:04,000 --> 00:05:09,000
So for that what I will do, I will go back to my Huggingface hub or Huggingface.

99
00:05:09,000 --> 00:05:11,000
I will click on settings button.

100
00:05:11,000 --> 00:05:12,000
Okay.

101
00:05:12,000 --> 00:05:17,000
Now inside this settings button I will go and click on something called as Access Token.

102
00:05:17,000 --> 00:05:21,000
Now over here you'll be seeing that I've created so many access token to start with, I will just go

103
00:05:21,000 --> 00:05:26,000
ahead and write new and let's say I will go ahead and, uh, create my token over here.

104
00:05:27,000 --> 00:05:30,000
But please make sure to select the type as right.

105
00:05:30,000 --> 00:05:31,000
Okay.

106
00:05:31,000 --> 00:05:35,000
So let's see whether it is right or not.

107
00:05:35,000 --> 00:05:36,000
No, it is fine grained.

108
00:05:36,000 --> 00:05:38,000
Uh, let me just go ahead and create my access token once again.

109
00:05:38,000 --> 00:05:40,000
So I'll be going over here.

110
00:05:40,000 --> 00:05:42,000
I will click on new token.

111
00:05:42,000 --> 00:05:44,000
I will write token one okay.

112
00:05:44,000 --> 00:05:48,000
This will be the name of the token and type I will go ahead and select as right.

113
00:05:48,000 --> 00:05:50,000
The reason why I'm selecting as right.

114
00:05:50,000 --> 00:05:55,000
Because I need to push something into the hugging face hub in inside this particular space.

115
00:05:55,000 --> 00:05:56,000
Right.

116
00:05:56,000 --> 00:05:58,000
So all the files I need to push it over here.

117
00:05:58,000 --> 00:06:01,000
So for this I need to write I need to get an right access token.

118
00:06:01,000 --> 00:06:03,000
So I will go ahead and generate a token.

119
00:06:03,000 --> 00:06:06,000
And I'll make sure to copy this specific token okay.

120
00:06:06,000 --> 00:06:12,000
And this particular token I will store it in my notepad so that I will be using this where I will be

121
00:06:12,000 --> 00:06:14,000
using it and talk about it okay.

122
00:06:15,000 --> 00:06:18,000
So let me just go ahead and close this after creating the token.

123
00:06:18,000 --> 00:06:19,000
Now I'll go back over here.

124
00:06:20,000 --> 00:06:21,000
This is the first step.

125
00:06:21,000 --> 00:06:22,000
I've created my token right.

126
00:06:22,000 --> 00:06:29,000
Now the next thing that you'll be seeing over here I have something called as git push git uh https

127
00:06:29,000 --> 00:06:31,000
hugging face underscore username.

128
00:06:31,000 --> 00:06:33,000
Now what is my hugging face underscore username?

129
00:06:33,000 --> 00:06:37,000
It is nothing but Krishna zero six so I will just go ahead and write it over here.

130
00:06:38,000 --> 00:06:45,000
Krish Krishna zero six okay, so this is my first hugging face token information that I have.

131
00:06:45,000 --> 00:06:45,000
Sorry.

132
00:06:45,000 --> 00:06:48,000
The username information that I have that is Krishna zero six.

133
00:06:48,000 --> 00:06:53,000
Then I will be using the same hugging face token over here then hugging face dot o.

134
00:06:53,000 --> 00:06:55,000
Then here you'll be able to see.

135
00:06:55,000 --> 00:06:58,000
I have to also mention the hugging face user name here too.

136
00:06:58,000 --> 00:07:01,000
So let me just go ahead and write Krishna zero six along with this.

137
00:07:01,000 --> 00:07:03,000
My space name.

138
00:07:03,000 --> 00:07:04,000
My space name is very simple.

139
00:07:04,000 --> 00:07:07,000
I need to use this search underscore engine underscore LM okay.

140
00:07:07,000 --> 00:07:15,000
So now here I will just go ahead and write search underscore engine underscore LM okay.

141
00:07:15,000 --> 00:07:17,000
And then this basically goes to the end.

142
00:07:17,000 --> 00:07:19,000
Please make sure to make the spelling right.

143
00:07:19,000 --> 00:07:21,000
And finally this is going to my main branch.

144
00:07:21,000 --> 00:07:25,000
So that is the reason we are pushing this entire information into the main branch.

145
00:07:25,000 --> 00:07:29,000
And this is my main branch right inside my huggingface space.

146
00:07:30,000 --> 00:07:33,000
So yes, this was all the information that I need to put over here.

147
00:07:34,000 --> 00:07:37,000
Now the next thing is that I will go to my settings okay.

148
00:07:37,000 --> 00:07:40,000
I will click on settings over here okay.

149
00:07:40,000 --> 00:07:45,000
Uh, inside the settings uh there will be something called as secret and variable.

150
00:07:45,000 --> 00:07:45,000
Okay.

151
00:07:45,000 --> 00:07:49,000
Now inside the secret and variable I will click on actions.

152
00:07:49,000 --> 00:07:53,000
And here I need to go ahead and create my secret key repository secret key.

153
00:07:54,000 --> 00:07:58,000
The new repository secret key that I am actually going to go ahead and create.

154
00:07:58,000 --> 00:07:58,000
Right.

155
00:07:58,000 --> 00:08:02,000
It should be the same name right h f underscore token.

156
00:08:02,000 --> 00:08:08,000
So as soon as we call this code secrets dot h f underscore token, it is going to take this particular

157
00:08:08,000 --> 00:08:09,000
token from here.

158
00:08:09,000 --> 00:08:09,000
Okay.

159
00:08:09,000 --> 00:08:13,000
And this particular info that I have will be this key.

160
00:08:13,000 --> 00:08:13,000
Right.

161
00:08:13,000 --> 00:08:15,000
I will be assigning it over here.

162
00:08:16,000 --> 00:08:19,000
And then we will go ahead and click on Add Secret.

163
00:08:19,000 --> 00:08:22,000
Once we add the secret here you can see it is my F underscore token.

164
00:08:22,000 --> 00:08:23,000
Perfect.

165
00:08:23,000 --> 00:08:25,000
Now this work is done.

166
00:08:25,000 --> 00:08:26,000
This is also updated.

167
00:08:26,000 --> 00:08:31,000
This my entire uh this run where we need to push the code is also updated.

168
00:08:31,000 --> 00:08:34,000
And as soon as I do this, I'll just go ahead and commit the changes.

169
00:08:34,000 --> 00:08:35,000
Okay.

170
00:08:35,000 --> 00:08:39,000
So once I commit the changes, now an amazing thing is going to happen suddenly.

171
00:08:39,000 --> 00:08:41,000
Just click on this actions.

172
00:08:41,000 --> 00:08:42,000
Now see this?

173
00:08:42,000 --> 00:08:45,000
This entire CI CD pipeline is running.

174
00:08:45,000 --> 00:08:49,000
If I go inside this, these are the steps that will happen on push.

175
00:08:49,000 --> 00:08:51,000
Right now it is starting the job.

176
00:08:51,000 --> 00:08:54,000
And here you can see that I am getting some kind of error okay.

177
00:08:54,000 --> 00:08:56,000
let's see what is the error.

178
00:08:56,000 --> 00:08:59,000
So here you can see two hugging face spaces.

179
00:08:59,000 --> 00:09:01,000
Crush engine rejected.

180
00:09:01,000 --> 00:09:02,000
Main fetch.

181
00:09:02,000 --> 00:09:04,000
Failed to push some reference things.

182
00:09:04,000 --> 00:09:09,000
Uh, this is usually caused by another repository pushing to the same reference.

183
00:09:09,000 --> 00:09:10,000
Okay.

184
00:09:10,000 --> 00:09:16,000
Now uh hint have locally this is used by another repository pushing to this.

185
00:09:16,000 --> 00:09:16,000
Right.

186
00:09:16,000 --> 00:09:23,000
So here uh what is it is basically saying is that I before this, I tried to test one of the repositories.

187
00:09:23,000 --> 00:09:25,000
And based on that, I was just trying to push it.

188
00:09:25,000 --> 00:09:26,000
Okay.

189
00:09:26,000 --> 00:09:29,000
So I will go back to that particular repository and I'm pushing it to the same thing.

190
00:09:29,000 --> 00:09:32,000
So that is the reason it won't make any sense.

191
00:09:32,000 --> 00:09:35,000
Let me just do go back to my repository over here okay.

192
00:09:35,000 --> 00:09:38,000
And let me open that particular repository okay.

193
00:09:38,000 --> 00:09:39,000
Search engine.

194
00:09:39,000 --> 00:09:39,000
All right.

195
00:09:39,000 --> 00:09:41,000
So this is my repository here.

196
00:09:41,000 --> 00:09:44,000
You can go ahead and see that I have my GitHub workflows.

197
00:09:44,000 --> 00:09:48,000
And now again what I will be doing I'll be having this entire thing right over here.

198
00:09:48,000 --> 00:09:50,000
Now let me do one thing quickly over here.

199
00:09:50,000 --> 00:09:54,000
That what I will do is that I will go back over here in my code.

200
00:09:54,000 --> 00:09:55,000
Okay?

201
00:09:55,000 --> 00:10:01,000
And don't worry, because of this error, you may be getting confused because I just tried it before

202
00:10:01,000 --> 00:10:02,000
earlier, right?

203
00:10:02,000 --> 00:10:05,000
I will just go ahead and update it just to show you how things happen.

204
00:10:05,000 --> 00:10:06,000
Right?

205
00:10:06,000 --> 00:10:09,000
So here I will just update one of the file okay.

206
00:10:10,000 --> 00:10:10,000
One of the file.

207
00:10:10,000 --> 00:10:11,000
Yeah.

208
00:10:11,000 --> 00:10:14,000
And then I will just go ahead and commit it okay.

209
00:10:14,000 --> 00:10:16,000
So here let me just go ahead.

210
00:10:16,000 --> 00:10:21,000
So here you can see I will just edit this file okay.

211
00:10:21,000 --> 00:10:23,000
I will just go ahead and commit it okay.

212
00:10:23,000 --> 00:10:29,000
I will just commit this particular changes as soon as I commit this changes if I go back to my code

213
00:10:29,000 --> 00:10:31,000
one amazing thing is basically going to happen.

214
00:10:31,000 --> 00:10:36,000
Go to the actions and here you will be able to see I have updated the app dot Pi.

215
00:10:36,000 --> 00:10:38,000
It is telling me to sync to hub.

216
00:10:38,000 --> 00:10:40,000
Now this entire code is basically with push.

217
00:10:40,000 --> 00:10:41,000
Right now.

218
00:10:41,000 --> 00:10:46,000
This push has actually happened in my huggingface space, right?

219
00:10:46,000 --> 00:10:48,000
So I will go ahead and see this particular link.

220
00:10:49,000 --> 00:10:51,000
Now you'll be able to see the magic right?

221
00:10:51,000 --> 00:10:55,000
So once I hit this link right it is giving me an error okay.

222
00:10:55,000 --> 00:10:57,000
Okay, first of all, this readme file.

223
00:10:57,000 --> 00:10:57,000
It's okay.

224
00:10:57,000 --> 00:10:58,000
We'll try to fix this.

225
00:10:58,000 --> 00:11:03,000
But if I go and see in my file section, you'll be able to see that I have my API, I have my requirement

226
00:11:03,000 --> 00:11:07,000
dot txt and along with this I also have my GitHub workflow right.

227
00:11:07,000 --> 00:11:09,000
The entire GitHub workflow perfect.

228
00:11:10,000 --> 00:11:14,000
But still we are getting an error how to fix that particular error, right?

229
00:11:14,000 --> 00:11:17,000
So what I will do, I will just open my readme file okay.

230
00:11:17,000 --> 00:11:19,000
And we need to edit this readme file.

231
00:11:19,000 --> 00:11:19,000
Okay.

232
00:11:19,000 --> 00:11:25,000
So what I will do, I will just remove this because it requires some special characters like I need

233
00:11:25,000 --> 00:11:26,000
to add what kind of license is there?

234
00:11:26,000 --> 00:11:30,000
I will go ahead and say, hey, this is my search engine.

235
00:11:30,000 --> 00:11:30,000
Okay?

236
00:11:30,000 --> 00:11:33,000
Then I will ask the SDK that is Streamlit.

237
00:11:33,000 --> 00:11:34,000
I will add some kind of emoji.

238
00:11:34,000 --> 00:11:38,000
Okay, something like this and I'll add some color form.

239
00:11:38,000 --> 00:11:41,000
Let's go and add this and short description.

240
00:11:41,000 --> 00:11:45,000
So this is nothing but search engine with LM okay.

241
00:11:45,000 --> 00:11:51,000
Now once I update this quickly, uh, let's commit this changes to the main file.

242
00:11:51,000 --> 00:11:57,000
Now here, if I go back to my apps in this huggingface space, now this see this entire thing, the

243
00:11:57,000 --> 00:11:59,000
entire build will start running.

244
00:11:59,000 --> 00:12:03,000
First of all, it will go ahead with installing all the requirements.txt.

245
00:12:03,000 --> 00:12:04,000
Right.

246
00:12:04,000 --> 00:12:10,000
So if I just go ahead and see this right see over here all the requirement dot txt is basically getting

247
00:12:10,000 --> 00:12:14,000
hit and the container is going to get built up right now.

248
00:12:14,000 --> 00:12:19,000
And once this is built my entire application will show up over here.

249
00:12:19,000 --> 00:12:20,000
Right.

250
00:12:20,000 --> 00:12:25,000
So we'll just wait for some time to just show up the things over here that we are looking for.

251
00:12:25,000 --> 00:12:32,000
And uh, till then, uh, if I just go back to my files over here, okay, in In my files, please make

252
00:12:32,000 --> 00:12:41,000
sure to download this readme file, because I need to use this same readme file, uh, inside my GitHub.

253
00:12:41,000 --> 00:12:41,000
Right.

254
00:12:41,000 --> 00:12:43,000
So I will make sure to update this entire thing.

255
00:12:44,000 --> 00:12:48,000
So I will just copy this and I will go back to my app Dot Pi.

256
00:12:49,000 --> 00:12:52,000
And let's go ahead and update it over here okay.

257
00:12:53,000 --> 00:12:58,000
So in order to update it I will just remove this and I'll paste it over here.

258
00:12:58,000 --> 00:13:00,000
I'll commit the changes.

259
00:13:00,000 --> 00:13:01,000
Okay.

260
00:13:01,000 --> 00:13:05,000
Now as soon as the commit will happen automatically this particular code is there.

261
00:13:05,000 --> 00:13:07,000
But again the action will go ahead.

262
00:13:07,000 --> 00:13:08,000
You know.

263
00:13:08,000 --> 00:13:11,000
And this is all because the CI CD pipeline is running.

264
00:13:11,000 --> 00:13:16,000
Whenever I do any kind of commit and all automatically the push will basically happening in the hub

265
00:13:16,000 --> 00:13:18,000
right in my in my hugging face space.

266
00:13:18,000 --> 00:13:19,000
Okay.

267
00:13:19,000 --> 00:13:23,000
Now finally, you can see my entire application start up will start running.

268
00:13:23,000 --> 00:13:29,000
It is taking some amount of time because there are lot of inbuilt uh, they all the all the requirement

269
00:13:29,000 --> 00:13:34,000
dot txt libraries will get installed and uh we will just wait for some time.

270
00:13:34,000 --> 00:13:39,000
It is still building the entire container and the entire application that we really want to run will

271
00:13:39,000 --> 00:13:40,000
be shown over here.

272
00:13:41,000 --> 00:13:46,000
And this is how you can actually do the entire deployment just by using the CI CD pipeline.

273
00:13:46,000 --> 00:13:52,000
And this is what is an example of GitHub actions right here in this main dot YAML file.

274
00:13:52,000 --> 00:13:57,000
What I have actually done is that I've told, hey uh, on push you have to push it to the main branch

275
00:13:57,000 --> 00:14:00,000
where we need to push, we need to push it in our hugging face space.

276
00:14:00,000 --> 00:14:03,000
And that is the information that I've actually given over here.

277
00:14:03,000 --> 00:14:03,000
Right.

278
00:14:03,000 --> 00:14:07,000
So this was one of the most easiest way to probably do the deployment.

279
00:14:07,000 --> 00:14:11,000
And you can probably do any kind of generative AI applications that you really want to do.

280
00:14:11,000 --> 00:14:12,000
Right.

281
00:14:12,000 --> 00:14:13,000
So let's do one thing.

282
00:14:13,000 --> 00:14:18,000
Let's wait for some time and let's, uh, let the build specifically happen.

283
00:14:18,000 --> 00:14:21,000
And once it happens, I will probably show you the next steps, okay.

284
00:14:21,000 --> 00:14:25,000
And we will also test out the test out the entire application over here.

285
00:14:25,000 --> 00:14:28,000
So yeah, let's wait for some time.

286
00:14:28,000 --> 00:14:31,000
So finally, you can see guys, uh, this entire application has started.

287
00:14:31,000 --> 00:14:33,000
So we will hide this.

288
00:14:33,000 --> 00:14:37,000
And here is our entire application working on this particular hugging face spaces.

289
00:14:37,000 --> 00:14:41,000
And you can probably pass this particular URL, share this URL.

290
00:14:41,000 --> 00:14:46,000
And you can show everyone that what you have actually developed right now, we will quickly go ahead

291
00:14:46,000 --> 00:14:51,000
and I will be using my environment variable and I will update my grok API key.

292
00:14:51,000 --> 00:14:57,000
You can probably get the grok API key over here, paste it, press enter, and after this I will just

293
00:14:57,000 --> 00:15:00,000
go ahead and search for what is machine learning.

294
00:15:00,000 --> 00:15:03,000
And I think I should be able to get the answer okay.

295
00:15:03,000 --> 00:15:07,000
So thinking search thinking invalid tool Wikipedia no need.

296
00:15:07,000 --> 00:15:12,000
Then from the search itself we are able to get all the information it did not think to probably go to

297
00:15:12,000 --> 00:15:15,000
Wikipedia and here is my information right now.

298
00:15:15,000 --> 00:15:20,000
Still, if I go ahead and ask what is generative AI, I should be able to get my response again.

299
00:15:20,000 --> 00:15:26,000
It is searching from this DuckDuckGo search, um, search for generative artificial intelligence and

300
00:15:26,000 --> 00:15:26,000
all.

301
00:15:26,000 --> 00:15:31,000
So here you can see requested tool Wikipedia search arXiv and Wikipedia.

302
00:15:31,000 --> 00:15:31,000
Right?

303
00:15:31,000 --> 00:15:33,000
Wikipedia if I keep on second.

304
00:15:33,000 --> 00:15:33,000
Okay.

305
00:15:33,000 --> 00:15:37,000
And uh, it is saying that it is not a valid tool, it is not required.

306
00:15:37,000 --> 00:15:40,000
And here is the information with respect to our generative AI.

307
00:15:40,000 --> 00:15:44,000
So I hope, uh, you are able to understand this entire deployment mechanism.

308
00:15:45,000 --> 00:15:49,000
So I hope you are able to understand this entire deployment mechanism.

309
00:15:49,000 --> 00:15:52,000
You can probably go ahead and deploy anything that you want.

310
00:15:52,000 --> 00:15:55,000
And I think this hugging face space will be more than sufficient.

311
00:15:55,000 --> 00:16:01,000
But at the end of the day, I have actually shown you how you can create this entire thing with the

312
00:16:01,000 --> 00:16:05,000
help of this GitHub workflows, uh, where we have also used GitHub actions.

313
00:16:05,000 --> 00:16:06,000
So yes, this was it from my side.

314
00:16:06,000 --> 00:16:07,000
I will see you all in the next video.

315
00:16:07,000 --> 00:16:08,000
Thank you.

316
00:16:08,000 --> 00:16:08,000
Take care.

317
00:16:08,000 --> 00:16:09,000
Bye bye.

