Okay.
So this is the second level two application you are going to learn.
As you can see this is a very simple application.
A the user is going to enter a topic and the application is going to create a blog post about this topic.
Some interesting things we see in this user interface is that we have created a sidebar.
Okay, so you will see the code to create a sidebar in the in your GitHub code.
Okay.
So uh, let's first uh, test this application.
So the first thing we need to do is to load to enter our OpenAI key.
And then we are going to enter a topic.
For example, we say it it is a creating a default topic for us with the previous with the previous
uh, search uh, query we use here.
But we are going to create a different one with a new query.
Let's see for example the future.
Of LM applications.
And then we click enter.
And you see.
The application is going to generate a blog post of 365 words for us.
Okay, first of all, first of all, let's define what an application is, blah blah blah, whatever.
Okay, so as the previous level two application, you have to see this prototypes as very simple examples
that can do really wonderful things when they become professional applications.
So a when we are developing prototypes we are usually working with very small, uh, sizes like okay,
let's enter just one topic here.
Let's uh, do a functionality with a very small number of items.
But this is just a, a, a way to, to, to have a more simple prototype.
And then when we go to the professional stage, we can go as complex and, you know, sophisticated
as we want.
But the important thing for the prototype is to be simple, to be easy, to be fast.
Okay.
So let's take a look at the code you are going to download from GitHub.
Remember and don't worry about this hidden file.
This is a default file that is created whenever you are creating a folder in in in in a mac computer.
Don't worry about that.
Just about these two files.
Remember that we are not going to have a dot m file here because we are not using our secret credentials
because we are asking the user to enter his OpenAI credentials.
So just these two files requirements and main.
In the requirements file, we have the three packages we are using.
We know about them, and in the main.py file we have a functionality that mostly, uh, you know okay.
So everything you see here, uh, this LM template, Prom template, etc., etc. is something you already
know.
The excuse me, the elements that may be new for you are the Streamlit elements that start with St in
most cases, like this one, for example.
As you see, you can guess what this is doing, but you can go to the streamlined documentation if you
need it.
But you know we are generating the title of the page, etc. etc., right?
But remember that with Streamlit we are going to use Python functions to encapsulate the lang chain
logic in order to call this logic whenever we are ready.
Okay, so this very simple logic, in order to create a very simple prototype.
Now you download the code, you test this application locally in your own computer.
Uh, when you have experimented enough, uh, tried, you know, experiment, change, make mistakes,
ask ChatGPT for, go to the Streamlit documentation, go to W3 Schools.com documentation about Python,
go to the launching documentation, etc. etc..
Remember all the operations you have done in the previous blog with level one applications etc. and
then when you feel comfortable if you want to, you can load this application in your own GitHub repository.
And then from your Streamlit uh, community free account, you can also generate your own URL for your
application in the cloud.
But this is not necessary.
And you did this in the previous, uh, application for the initial level two application.
But it can be an interesting exercise this time as well.
So remember right now the focus, the priority is to practice, practice, practice until you feel comfortable
with this application.
First you execute our code.
Then you write it again.
You try to understand what you are writing.
Whenever you have a doubt, you go to the ChatGPT for the extremely documentation, etc. etc. and once
you feel comfortable and only then you go to the next application.