AIToolsLab / structure

0 stars 0 forks source link

AI-for-Writers

How to run the server

In the terminal:

  1. Run pip install -r requirements.txt
  2. Run python -m spacy download en_core_web_sm
  3. Create a file named .env in the project folder, containing:

    OPENAI_API_KEY=YOUR_API_KEY

    We'll get the API key in the next step.

  4. Go to OpenAI API keys to get an API key. Replace YOUR_API_KEY in the .env file with the API key you just copied.
  5. Run python server.py to run the server.
  6. Run tsc
  7. 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.html file in your browser