Utilize OpenAI GPT-3 API to build a python flask-based website
Here is my ChatGPT API (GPT-3.5) github link https://github.com/redemptionwxy/ChatGPT-API-Flask-Website
Python3 Environment:
- Install openai and flask library
pip install openai
pip install flask
-
In main.py file replace code openai.api_key = 'your API' with your API key
-
Run the python file and use your browser open 127.0.0.1:80 or localhost
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Update >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
As you can see the previous version of website (main.py + chat.html) is quite shaby.
So, I asked chatGPT kindly for a better design and proposed three improving requirements:
- Seperate the original html file into three standard files (html + css + js) and keep all the functions at the same time.
- Redesign the website using Bootstrap templates.
- The Temperature Guide Section will be able to click and hide on the right side of the website.
Here is the comparison of the original website and the chatGPT improved website.
Original Website:
ChatGPT Improved Website:
ENJOY!