- To run this code use
git clone https://github.com/davidbombal/hostinger_quiz_website
- You need to have Python installed. The PDF document in the YouTube video description goes into detail on how to use the API. Please refer to that. Please take note GPT-4 API is now available and uses the chat completions API like the ChatGPT API does. It does not use the completions API like DaVinci-003 and other GPT-3 API models.
- Ensure you have pip installed as well. You can use the command
sudo apt install python3-pip
on Debian Linux distros. - You need to install the following modules
pip install openai
- You need to get your own API Key, follow the PDF document in the YouTube video description to get you OpenAI API Key.
- The
davinci-003.py
andchatgpt-api.py
files contains the OpenAI API usage examples to create quiz questions in JSON format. - You can set up a server on Hostinger (https://www.hostinger.com/davidbombal. Use Coupon Code: DAVIDBOMBAL on checkout to get a 10% discount.) or you can run your web site locally using live server plugin. You only need to copy all the files excluding the .py files to the directory on your server. Follow the instructions in the video to get the website up and running on Hostinger or Live Server (on your local machine).
yaaniunotfound / quiz_website Goto Github PK
View Code? Open in Web Editor NEWThis project forked from davidbombal/hostinger_quiz_website