In the terminal:
-
Run
pip install -r requirements.txt -
Run
python -m spacy download en_core_web_sm -
Create a file named
.envin theprojectfolder, containing:OPENAI_API_KEY=YOUR_API_KEYWe'll get the API key in the next step.
-
Go to OpenAI API keys to get an API key. Replace
YOUR_API_KEYin the.envfile with the API key you just copied. -
Run
python server.pyto run the server. -
Run
tsc -
Open the webpage
- If you're using VSCode, you can use the Live Server extension to open the webpage.
- Another option is to directly open the
index.htmlfile in your browser