
Learn to build a desktop chat bot in Python with a Tkinter interface that connects to the OpenAI GPT API using an API key, prompts the bot, and displays responses.
Download and install Python, check the add Python to path option, and reinstall if needed to ensure a proper setup before continuing with the course.
Set up Sublime Text and the Git Bash terminal on Windows, download the latest versions, and walk through default installation to prepare your coding environment for the course.
Sign up for a free OpenAI account to obtain your API key and $18 in credits, then copy and store the key to connect to OpenAI.
Add a scrollbar to a Tkinter text widget by creating a scrollbar, linking it to the text's yview, and placing it in the text frame with grid and sticky settings.
Explore building a Tkinter entry widget for a chat GPT interface by configuring placeholder text, size (535 by 50), and a slim 1-pixel border, with focus behavior and layout adjustments.
Learn how to save an API key in a tkinter app using pickle to write and read a binary file, with file existence checks.
Save the api key by writing entered value to api_key with pickle.dump in write mode. Open the file, dump the data, and delete to reset; it's byte code, not encryption.
Clear the screen demonstrates implementing a clear button in a tkinter chat bot to erase the output and input fields. It sets up the next video on querying ChatGPT.
Learn to parse the chat http response from ChatGPT in Python, extract the text from the choices list, strip line breaks, and retrieve the text for a Tkinter chat bot.
Generate an rsa ssh key in the terminal, save it in the ssh directory, and copy the public key to GitHub to enable secure repository access.
Sign in to GitHub, open settings > ssh and gpg keys, add a new ssh key, and paste the copied key to enable authentication for future pushes.
Set up git on your local computer, initialize a repository, and push to GitHub, renaming master to main, securing your API key and choosing public or private visibility.
Celebrate completing the course with a bonus lecture, and claim a $100 gift along with lifetime access to all current and future courses via a one-time membership.
In this course I'll teach you how to make graphical user interfaces for Python using TKinter, and how to connect those apps to the OpenAI Text Completion Artificial Intelligence API. You'll be surprised just how quickly you can create some pretty cool looking apps!
We'll use Python, Tkinter, and CustomTkinter to build a cool Chatbot app that connects to OpenAI, maker's of ChatGPT.
You'll be able to send ChatGPT-like questions straight from your app, and receive a response that is output to the screen of your app.
We'll use davinci-003, the most advanced model offered by OpenAI to get our responses.
Finally, I'll discuss how to connect to OpenAI with an API Key, query the engine, and parse the responses in the correct way.
If you've seen ChatGPT recently and want to learn how to use these types of tools programmatically, then this is the course for you!
We'll use the customTkinter library to make our Tkinter app look a little more modern and professional. Some people think that Tkinter is a little old and stodgy looking. The CustomTkinter library solves that problem very easily.
We won't dive into customTkinter in great detail in this course, we'll just use bits of it here and there to make our app look more modern. So if you have no experience with customTkinter, you won't have any trouble following along; I'll walk you through it step by step!