ChatGPT + Raspberry Pi - A ChatGPT powered Raspberry Pi chatbot

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi I'm Thomas today I will show you how to make an audio chatbot using a Raspberry Pi and the power of chat gbt hey say hello hello chat GPT might sound all scary and complicated because of all the machine learning and AI involved but I promise you this is actually one of the simplest projects I have done so far in fact the whole code Bay is just one copy and paste python script with that said let's go ahead and do it but first let's talk about some Hardware requirement for this project you will be needing a Raspberry Pi any Raspberry Pi would work personally I will be using a Raspberry Pi 4. next up you will need a monitor keyboard or mouse and a USB or SD card of choice for installing the operating system and lastly you need a USB microphone I picked up this microphone on Amazon for under 10 with that in mind let's get the software ready now using an existing computer plug in your USB or SD card of choice open up Raspberry Pi Imager [Music] pick the latest raspberry pios installation in this case it's a 32-bit bullseye pick the storage you just plugged in go ahead and then press right this will take some time in the meantime let's do something else open the browser go to openai.com here Here sign up next up go on to platform.openai.com dash apps click on API go into a personal and view API keys this is how you create and have your own API keys to use charge gbt on your own application May create a new secret key let me give it a name now this is your chance to copy and write down your API key this is how you're going to be using your application if you ever lose this key by any chance you can always make a new one like you can see here I have four keys this is technically not free but you do not have to pay anything because when signing up you actually have a five dollar credit on open AI personally I've used this a lot and only spent two steps so far so if you plan to pay for your API this is actually very cheap for personal projects you will not be spending more than five dollars a year as soon as the raspberry pios install is complete let's move on to that physical device okay once it's all ready plug the Raspberry Pi into the monitor keyboard mouse USB and microphone and Boot It Up once you're ready go ahead and open a terminal we will be entering commands to run our code then we'll be installing some libraries that allow us to communicate with chatgpt and take chat cpt's response make it into audio I've had my commands Down Below in the description so you can follow along so let me run through those commands so first let's check the system for updates it takes a while now let's install some libraries for our python script again you can just copy and paste my commands down below okay now that's all done going to the top right corner of your screen right click on the audio button and change your audio Source output to HDMI that should work just fine now last step you can actually copy and paste my python script from my GitHub or my YouTube description into a new python file so let's so let's type in sudo Nano let's say GPT dot local dot python this will create a new python script named gpt.python and copy my python script into this and even navigate with your keyboard go on to the the line of open API the API key here's where you put in your secret API key from earlier do not share this with anyone else okay with this ready let's go ahead and run the script and try out our chatbot run pythons3 LGBT dot python here our code is looking for the word hey hey what is a raspberry pie range of projects such as media center retro gaming consoles no automation systems and more it was originally designed to promote her teaching or basic computer science in tools and developing countries I think that's pretty impressive hey say hello hello hey where are some cool Raspberry Pi Projects on Evolution levels to Smart humidifier I think that's enough demo so that is my tutorial on how to make a chat bot with a Raspberry Pi and chat gbt if you're interested in doing one for yourself let me know how it runs with a comment down below with that in mind if you have any question also comment down below I tend to respond pretty quickly anyway have a good day ahead of you take care
Info
Channel: Thomas the Maker
Views: 45,836
Rating: undefined out of 5
Keywords:
Id: lHxFFn04L10
Channel Id: undefined
Length: 6min 34sec (394 seconds)
Published: Mon Jun 19 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.