This is a opensource project base on openAI_demo(https://github.com/openai/openai-quickstart-python.git). It integer Werbot and flask, It's easy to use If you are in China. Just you need to get a vpn soft, and install it on your server.
-
If you don’t have Python installed, install it from here
-
Clone this repository
-
Navigate into the project directory
$ cd openai-quickstart-python
-
Create a new virtual environment
$ python -m venv venv $ . venv/bin/activate
-
Install the requirements
$ pip install -r requirements.txt
-
Make a copy of the example environment variables file
$ cp .env.example .env
-
Add your API key to the newly created
.env
file -
Run the app
$ flask run
You should now be able to access the app at http://localhost:3000! For the full context behind this example app, check out the tutorial.