1
00:00:04,440 --> 00:00:04,830
Okay.

2
00:00:04,830 --> 00:00:11,220
So this is the second level two application you are going to learn.

3
00:00:11,640 --> 00:00:15,780
As you can see this is a very simple application.

4
00:00:16,440 --> 00:00:25,560
A the user is going to enter a topic and the application is going to create a blog post about this topic.

5
00:00:26,610 --> 00:00:33,870
Some interesting things we see in this user interface is that we have created a sidebar.

6
00:00:33,960 --> 00:00:43,230
Okay, so you will see the code to create a sidebar in the in your GitHub code.

7
00:00:43,230 --> 00:00:43,890
Okay.

8
00:00:44,670 --> 00:00:49,770
So uh, let's first uh, test this application.

9
00:00:49,770 --> 00:00:57,360
So the first thing we need to do is to load to enter our OpenAI key.

10
00:00:58,850 --> 00:01:01,520
And then we are going to enter a topic.

11
00:01:01,520 --> 00:01:12,320
For example, we say it it is a creating a default topic for us with the previous with the previous

12
00:01:12,320 --> 00:01:16,970
uh, search uh, query we use here.

13
00:01:16,970 --> 00:01:20,780
But we are going to create a different one with a new query.

14
00:01:20,780 --> 00:01:25,160
Let's see for example the future.

15
00:01:26,390 --> 00:01:29,390
Of LM applications.

16
00:01:31,110 --> 00:01:32,910
And then we click enter.

17
00:01:35,840 --> 00:01:37,040
And you see.

18
00:01:38,190 --> 00:01:46,710
The application is going to generate a blog post of 365 words for us.

19
00:01:47,280 --> 00:01:52,320
Okay, first of all, first of all, let's define what an application is, blah blah blah, whatever.

20
00:01:52,350 --> 00:02:03,960
Okay, so as the previous level two application, you have to see this prototypes as very simple examples

21
00:02:03,960 --> 00:02:10,380
that can do really wonderful things when they become professional applications.

22
00:02:10,380 --> 00:02:21,090
So a when we are developing prototypes we are usually working with very small, uh, sizes like okay,

23
00:02:21,090 --> 00:02:23,760
let's enter just one topic here.

24
00:02:23,760 --> 00:02:28,950
Let's uh, do a functionality with a very small number of items.

25
00:02:28,950 --> 00:02:36,420
But this is just a, a, a way to, to, to have a more simple prototype.

26
00:02:36,420 --> 00:02:44,670
And then when we go to the professional stage, we can go as complex and, you know, sophisticated

27
00:02:44,670 --> 00:02:45,300
as we want.

28
00:02:45,300 --> 00:02:50,910
But the important thing for the prototype is to be simple, to be easy, to be fast.

29
00:02:50,910 --> 00:02:51,540
Okay.

30
00:02:51,960 --> 00:02:57,450
So let's take a look at the code you are going to download from GitHub.

31
00:02:57,450 --> 00:03:02,070
Remember and don't worry about this hidden file.

32
00:03:02,070 --> 00:03:08,370
This is a default file that is created whenever you are creating a folder in in in in a mac computer.

33
00:03:08,370 --> 00:03:09,450
Don't worry about that.

34
00:03:09,450 --> 00:03:11,100
Just about these two files.

35
00:03:11,100 --> 00:03:19,740
Remember that we are not going to have a dot m file here because we are not using our secret credentials

36
00:03:19,740 --> 00:03:26,370
because we are asking the user to enter his OpenAI credentials.

37
00:03:26,700 --> 00:03:30,930
So just these two files requirements and main.

38
00:03:31,880 --> 00:03:36,890
In the requirements file, we have the three packages we are using.

39
00:03:36,890 --> 00:03:47,720
We know about them, and in the main.py file we have a functionality that mostly, uh, you know okay.

40
00:03:47,720 --> 00:03:57,410
So everything you see here, uh, this LM template, Prom template, etc., etc. is something you already

41
00:03:57,410 --> 00:03:57,800
know.

42
00:03:57,800 --> 00:04:07,160
The excuse me, the elements that may be new for you are the Streamlit elements that start with St in

43
00:04:07,160 --> 00:04:09,590
most cases, like this one, for example.

44
00:04:10,130 --> 00:04:16,070
As you see, you can guess what this is doing, but you can go to the streamlined documentation if you

45
00:04:16,070 --> 00:04:16,399
need it.

46
00:04:16,399 --> 00:04:20,630
But you know we are generating the title of the page, etc. etc., right?

47
00:04:20,810 --> 00:04:30,770
But remember that with Streamlit we are going to use Python functions to encapsulate the lang chain

48
00:04:30,770 --> 00:04:35,420
logic in order to call this logic whenever we are ready.

49
00:04:35,420 --> 00:04:44,000
Okay, so this very simple logic, in order to create a very simple prototype.

50
00:04:44,000 --> 00:04:51,230
Now you download the code, you test this application locally in your own computer.

51
00:04:51,830 --> 00:05:02,360
Uh, when you have experimented enough, uh, tried, you know, experiment, change, make mistakes,

52
00:05:02,360 --> 00:05:10,550
ask ChatGPT for, go to the Streamlit documentation, go to W3 Schools.com documentation about Python,

53
00:05:10,550 --> 00:05:13,160
go to the launching documentation, etc. etc..

54
00:05:13,160 --> 00:05:19,400
Remember all the operations you have done in the previous blog with level one applications etc. and

55
00:05:19,400 --> 00:05:28,340
then when you feel comfortable if you want to, you can load this application in your own GitHub repository.

56
00:05:28,340 --> 00:05:37,790
And then from your Streamlit uh, community free account, you can also generate your own URL for your

57
00:05:37,940 --> 00:05:39,230
application in the cloud.

58
00:05:39,230 --> 00:05:41,000
But this is not necessary.

59
00:05:41,000 --> 00:05:46,970
And you did this in the previous, uh, application for the initial level two application.

60
00:05:46,970 --> 00:05:51,080
But it can be an interesting exercise this time as well.

61
00:05:51,080 --> 00:06:00,980
So remember right now the focus, the priority is to practice, practice, practice until you feel comfortable

62
00:06:00,980 --> 00:06:02,600
with this application.

63
00:06:02,600 --> 00:06:05,960
First you execute our code.

64
00:06:05,960 --> 00:06:08,060
Then you write it again.

65
00:06:08,060 --> 00:06:10,520
You try to understand what you are writing.

66
00:06:10,850 --> 00:06:18,140
Whenever you have a doubt, you go to the ChatGPT for the extremely documentation, etc. etc. and once

67
00:06:18,140 --> 00:06:23,210
you feel comfortable and only then you go to the next application.

