![]() We will use the pip command to get the packages we want.ĭownloading a package is very easy with pip. Make sure you always activate your virtual environment before making any changes to our code, or else you will run into some errors.Īgain, the beauty of the virtual environment is that we can install all packages and dependencies in one place, making it easy to share and update. To do so, run the following command: $ source venv/bin/activate ![]() ![]() Now we need to activate the virtual environment. $ python -m venv venvĪfter the command completes, you’ll have a subdirectory with the name venv inside gpt3-jabebot. Make sure your current directory is set to gpt3-chatbot and run this command. The -m venv option runs the venv package from the standard library as a standalone script, passing the desired name as an argument.Īgain, you’ll see around the internet that most people use ‘venv’ as the virtual environment folder but feel free to name it whatever. We are going to call our virtual environment venv. We are going to call ours: $ mkdir gpt3-jabebotĬhange into the new gpt3-jabebot directory we just created. People set up virtual environments numerous ways, but here are the commands I follow:Ĭreate a new project folder. It helps to keep code contained and make it more replicable since all the dependencies and site packages are in one place. Your future self will thank you for using a virtual environment whenever possible. We are going to install specific python packages and the best way to do this is with a virtual environment Creating a Virtual EnvironmentĪ virtual environment is a copy of the Python interpreter into which you can install packages privately, without affecting the global Python interpreter installed in your system. I am not a GitHub maestro but I know enough to get around. We will be using Twilio to handle the messaging serviceĪnd finally we will use Render to run our chatbot Requirements We will be using an API key from OpenAI to access to GPT3 We will be writing our code in the VS Code editor We are going to be doing this in the Python and use the Flask framework This is the written tutorial but if you want to watch the video tutorial on Youtube click here. This is the closest thing I have seen to a bot having consciousness and we are going to do it in less than 50 lines of code! We are going to create a messaging Chatbot that is driven by OpenAIs GPT3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |