Again.
Third level two application you are going to learn.
In this application we are going to load a text file.
The txt file and we are going to have a summary of the content of this file.
Okay.
So as you see this is something you already know how to do because you have learned it in the level
one applications section.
But now we are doing it using this user interface.
Okay.
So this is the new functionality we are adding.
Now how to upload a file in Streamlit okay so let's try this.
We enter the OpenAI API key, and then if we click here, we can load a file, in this case, this file,
uh, from a AI accelerator, our company that is explaining some text, you know, the different consulting
services we provide, you know, to, to develop applications for enterprise companies, business,
etc., etc., and the different services we have.
Okay.
So we are loading this text and as you see the application has generated a summary for us.
So it says AI accelerator provides a variety of services such as artificial intelligence, audit consulting,
training, blah blah blah blah blah.
Okay, so you saw the functionality of the application and the new items we have added, uh, from extremely.
Let's go and see the code you are going to download from our GitHub repository.
As in the previous applications, we have two main files.
In the requirements.txt file.
We have three packages we are familiar with in the main dot pi application.
You will see that well, you are also familiar with most of the things here.
Because you have used most of the things here in, uh, your applications, in your level one applications.
Okay.
So new things, uh, like before we are importing Streamlit, but the rest of the things are mostly
familiar to us.
Okay?
And remember, you know, that we are using functions in order to encapsulate a long chain logic for
Streamlit.
We are using the Streamlit format elements, you know, to create columns, titles, etc., etc. and
finally we execute the main logic.
Most of the things are, as you know, uh, familiar, uh, for you, in some cases you can see, you
know, a new, new things that you can start investigate like this thing, for example, to upload the
file, etc. you can start investigating these new things in the Streamlit documentation.
You have any any question you go to ChatGPT for etc. etc. you know the drill, okay.
And that's the convenient way for you to learn, because this is how we artificial intelligence engineers
work on a daily basis.
So this is going to make you more and more as an artificial intelligence engineer.
You will learn how to solve your daily problems and you will not feel the imposter syndrome.
You will feel like a real artificial intelligence engineer.
We don't know everything.
We need to find answers on a daily basis and this is how we do it.
Okay, so in case of doubt, you go to the extremely documentation, you go to the W3 Schools.com,
go to ChatGPT for etc., etc., etc. you know the the ways you have to, uh, go in order to find,
uh, answers.
Okay.
So in this third application you will learn how to, uh, load a file, txt file in this case and create
a summary about the content.
Remember practice practice practice, repeat uh, make mistakes, experiment, and only go to the next
application when you feel comfortable with this one.