Making a SEO article generator using ChatGPT with StreamLit
https://www.anaconda.com/products/individual
Step 2: Install the dependencies by opening your command prompt or terminal application. (Note: I used VS Code)
- OpenAI
pip install openai --user
- Streamlit
pip install streamlit --user
Step 3: Navigate to the directory where your app's code is stored using the command prompt or terminal application.
streamlit run main.py
openai.api_key = "Paste your api here"
You need your API key from ChatGPT. Do the following steps:
- Go to https://openai.com/blog/chatgpt
- Click the dropdown: "Developers" -> "API Reference"
- Click the top-right icon which is your account. If not signed in, please do so to proceed to the next step.
- Then in the dropdown of your icon, click "View API keys".
- Create new secret key and copy-paste the API key in the above line of code.