WEBVTT

00:05.010 --> 00:06.660
Hi everyone will come back.

00:06.860 --> 00:12.410
So in this video you are actually done from the previous video just as we usually do when I was trying

00:12.410 --> 00:13.570
to build the project.

00:13.670 --> 00:19.650
I usually move it from this folder here to this folder so that I have enough cash to.

00:19.680 --> 00:24.510
So I don't have to download last and other stuff from the from again and again.

00:24.620 --> 00:30.350
But you don't need to do that if you have a good Internet connection you can just go stay at image classification

00:30.350 --> 00:36.830
and you Sudhakar can both build and so came up for now you've done all the project files so this is

00:36.830 --> 00:38.930
tutorial one so I've moved in here.

00:38.990 --> 00:40.850
And then you can see it's exactly the same.

00:40.850 --> 00:44.900
So when there's inception our model and everything is very similar.

00:44.890 --> 00:45.460
OK.

00:45.660 --> 00:50.970
So basically copying the files in image classification and put it in utero.

00:51.110 --> 00:56.510
Some of that go into tutorial one you can go into you can remain in misclassification is the same thing

00:56.910 --> 01:02.770
that can do Sudhakar compose and then build a case and to build the project.

01:04.040 --> 01:07.870
Again and then now I'm going to use it to the operator compose.

01:08.020 --> 01:10.710
So now I'm going to fire up the project

01:14.280 --> 01:20.700
or call so we have the project running now and then we were going to open post man to start sending

01:20.700 --> 01:22.000
some requests to the API.

01:22.010 --> 01:23.900
So a postman opens.

01:24.090 --> 01:26.480
Let's see what we are going to be testing.

01:26.670 --> 01:28.870
So here is Boseman.

01:28.980 --> 01:33.080
We're going to be sending at slash register slash classify and slash freesheet.

01:33.150 --> 01:33.940
OK.

01:34.320 --> 01:39.440
So let's go back to both men making sure that it opens and everything is running.

01:39.540 --> 01:48.660
So for register we're going to we're going to be giving the argument username and password for for classified.

01:48.660 --> 01:52.540
We're going to give username password and then you are out of the image.

01:52.650 --> 01:58.010
And finally for what we feel we're going to get the user name admin password and amount.

01:58.040 --> 01:58.500
OK.

01:58.680 --> 02:04.620
So we could actually go to a postman if you go to post man we can come here and we can write all four

02:04.620 --> 02:04.950
of them.

02:04.950 --> 02:09.030
OK so I couldn't write user names so you can see it already.

02:09.110 --> 02:11.370
The Viride it's all in or register.

02:11.540 --> 02:14.520
And then you can see here that I have a username password.

02:14.520 --> 02:17.650
You are l admin password amount.

02:17.670 --> 02:22.350
So I wrote all of them and then for each of these back ends and they're only going to use the fields

02:22.350 --> 02:23.020
that they need.

02:23.040 --> 02:24.200
OK.

02:24.360 --> 02:29.850
All right so now let's me can you use or so for user Nerima are I for broke for password I'm literate

02:29.910 --> 02:32.160
secure as my password.

02:32.500 --> 02:32.990
You are.

02:33.010 --> 02:35.010
Well we all we want to you are ELF a photo.

02:35.010 --> 02:35.380
OK.

02:35.410 --> 02:40.550
Let's go to Firefox and then let's search for a photo of let's say a zebra.

02:40.550 --> 02:41.150
OK.

02:41.300 --> 02:52.910
So I'm going to ride zebra and then we go to images and then let's take this image of this cute zebra

02:52.910 --> 02:53.730
over here.

02:53.840 --> 02:58.040
We're going to right click and then we're going to say copy image location.

02:58.040 --> 02:58.650
OK.

02:58.850 --> 03:00.970
So I'm going to clean copy image location.

03:01.010 --> 03:07.190
Now if you go in a new tab and you click and you paste this then let's see.

03:07.190 --> 03:08.370
So.

03:09.000 --> 03:12.680
So it ended up copying the image in base 64.

03:12.680 --> 03:14.410
So this is not what we need.

03:14.570 --> 03:22.080
So let's try to copy another image or fire off a zebra but this time let's hope that is JPI OK.

03:22.970 --> 03:24.740
So indeed it is.

03:24.740 --> 03:29.520
So in this one you can see here that the file is dot GBG.

03:29.540 --> 03:30.110
OK.

03:30.230 --> 03:36.100
So when I dig this link over here and then copy it there go to a post map and paste it in there you

03:36.090 --> 03:36.240
are.

03:36.260 --> 03:37.000
All right.

03:37.130 --> 03:42.480
So let's see what our model or our API predicts for this image over here.

03:42.590 --> 03:45.850
Now for the admin password is ABC 1 2 3.

03:45.920 --> 03:48.750
And if I ever end up refilling I'm just going to refill it.

03:48.800 --> 03:49.850
OK.

03:50.060 --> 03:52.590
All right so now what Send send this.

03:52.640 --> 04:00.450
OK so I'm going to send to register first and it tells me successfully signed up for the API.

04:00.730 --> 04:02.320
All right cool so I've read your story.

04:02.330 --> 04:04.540
I have some tokens so I'm going to go right.

04:04.540 --> 04:05.850
Classified.

04:06.010 --> 04:08.500
I'm going to hit the API and declassify.

04:08.710 --> 04:12.730
So let's see let's see if we can maybe zoom in a bit here.

04:13.280 --> 04:15.280
It's not quite a bit.

04:15.310 --> 04:15.860
OK.

04:15.940 --> 04:17.070
So that's better.

04:17.290 --> 04:24.130
So we we're going to hit the API and slash classify and then we're going to be using this you are able

04:24.130 --> 04:26.910
to classify this image that we just pasted.

04:27.030 --> 04:31.860
So I'm going to send this over and let's see what this ends up being.

04:31.860 --> 04:37.120
So it's going to take a while because the model takes a look a little bit each time to compute what

04:37.120 --> 04:38.220
this image is.

04:38.320 --> 04:43.100
So this model takes a bit of time and few seconds for five or six seconds.

04:43.240 --> 04:45.700
So as you see it's loading and it's finally done.

04:45.850 --> 04:52.150
So let's have a look at the results so you can see that the first result this shows is zebra and its

04:52.150 --> 04:54.800
confidence is 0.9 forces.

04:54.810 --> 04:59.140
So that means that it's ninety four point six percent that it's a zebra.

04:59.140 --> 04:59.430
OK.

04:59.440 --> 05:00.570
So that's pretty cool.

05:00.580 --> 05:08.860
We found out that the first this image is a zebra with the confidence of ninety four point six percent.

05:08.860 --> 05:16.940
It all shows things that it's hard to be used with a probability of 1 percent or 0.1 percent actually

05:17.350 --> 05:23.810
Tiger with probability zero point zero or 1 0 9 percent.

05:24.030 --> 05:29.940
An ostrich with a probability of zero point zero zero or six percent.

05:29.980 --> 05:30.540
OK.

05:30.640 --> 05:34.060
So it's obvious you that this image has a Z.

05:34.150 --> 05:34.810
OK.

05:35.170 --> 05:37.540
Now let's try another image let's try for example.

05:37.560 --> 05:38.240
Bander.

05:38.410 --> 05:38.950
OK.

05:39.130 --> 05:46.010
So we're going to come here and then we right a panda and then cookie enter and then I take this cute.

05:46.010 --> 05:48.290
I met this cute panda.

05:48.290 --> 05:52.680
We got a copy that image location Minshew image loads.

05:52.720 --> 05:55.060
So in this case again we got the image basics.

05:55.060 --> 05:57.760
Of course so we want to direct image.

05:57.880 --> 06:00.710
So let's see if this one works.

06:00.770 --> 06:04.440
So we're going to copy that image again.

06:04.460 --> 06:06.820
It's a 64.

06:06.880 --> 06:16.870
So let's see maybe this one copy image location OK so you found one.

06:16.870 --> 06:19.520
So this one is the image over here.

06:19.630 --> 06:25.420
And it is not it's not 64.

06:25.420 --> 06:28.170
So we're going to do this you're all here.

06:28.400 --> 06:29.770
OK.

06:30.280 --> 06:39.430
And then we're going to sit and try and classify the air so it's going to take a few seconds and we

06:39.430 --> 06:40.770
get our response back.

06:40.960 --> 06:48.160
And you can see here it says a giant panda or a panda a panda bear couldn't bear or I know preowned

06:48.580 --> 06:50.100
Milone the new cat.

06:50.140 --> 06:54.770
OK so that's probably the biological name and it's confidence is 0.9.

06:54.770 --> 06:57.060
So are you sure that's ninety three point two percent.

06:57.100 --> 06:58.930
We're ninety three point three percent.

06:59.030 --> 07:03.100
So that SuperCoach right into this image is a panda.

07:03.240 --> 07:05.990
And so you can see here why this is very powerful is.

07:06.000 --> 07:12.070
People get images or developers get images and they can automatically know what this image has.

07:12.280 --> 07:14.900
OK so that's very strong very powerful.

07:15.140 --> 07:18.160
So hopefully you see the idea of this year.

07:18.160 --> 07:24.730
So yeah this is basically the API in fact you can you know sell this API if you hosted and then you

07:24.730 --> 07:31.240
make people pay for your tokens then you're technically you know you can charge for it.

07:31.240 --> 07:32.660
Some people actually do.

07:32.890 --> 07:41.710
And let's first run out of something I keep canceling me the want to send to several classification

07:41.860 --> 07:47.660
requests so that I can finish my tokens and then I want to refill and tokens OK.

07:47.670 --> 07:49.000
So I'm going to go.

07:49.080 --> 07:50.030
We.

07:50.240 --> 07:56.610
Keep sending the requests until I run out of tokens and it tells me hey sorry you need to.

07:56.620 --> 07:58.470
So it's got take a few seconds.

07:58.660 --> 08:01.560
I'm going to keep doing this until it runs out.

08:01.660 --> 08:06.510
So I'll pause now and I'll call you back once I've run out of tokens.

08:06.610 --> 08:07.580
OK.

08:08.290 --> 08:09.770
All right so welcome back.

08:09.940 --> 08:15.760
So you can see here it says the message not enough tokens and three or three so I've run out of tokens

08:15.760 --> 08:17.410
to run for the classify.

08:17.560 --> 08:24.390
So I'm going to go hit this last refill and then I input the correct admin password and the amount.

08:24.670 --> 08:26.080
And then I'm going to send.

08:26.260 --> 08:26.900
OK.

08:27.040 --> 08:27.980
It does not tell me.

08:28.210 --> 08:31.870
You have refilled and the status is 200 success.

08:32.200 --> 08:36.910
And then if I try to classify again last time you told me you don't have enough tokens but this time

08:36.910 --> 08:40.840
is gone tell me is going give me the prediction.

08:40.840 --> 08:41.570
So let's see.

08:41.650 --> 08:42.810
So let's wait for a second.

08:42.820 --> 08:43.690
And here it is.

08:43.840 --> 08:46.830
So the giant panda panda panda bear could bear.

08:46.830 --> 08:47.440
And so.

08:47.620 --> 08:48.280
OK.

08:48.590 --> 08:54.220
So this is all the API this is ready to be deployed if you do a few security checks.

08:54.220 --> 08:57.200
First of all like make sure that you are.

08:57.280 --> 08:58.150
That was sent to you.

08:58.150 --> 09:01.030
For example to secure and not.

09:01.630 --> 09:05.200
Like for example probably has some malware storm into it.

09:05.260 --> 09:09.030
So if you verify all of these things it should be ready to deploy.

09:09.160 --> 09:14.340
And you can actually ask people to pay you to use your EPA.

09:14.350 --> 09:15.020
OK.

09:15.250 --> 09:17.500
So hopefully you found that pretty cool.

09:17.560 --> 09:20.250
Brianna stop here and I'll see you the next video.

09:20.320 --> 09:21.930
So until then happy Cody.
