Update README.md

This commit is contained in:
Alex
2023-10-04 14:01:23 +01:00
committed by GitHub
parent 8320cca5cd
commit b7d569de98

View File

@@ -120,16 +120,11 @@ docker compose -f docker-compose-dev.yaml up -d
Make sure you have Python 3.10 or 3.11 installed. Make sure you have Python 3.10 or 3.11 installed.
1. Export required environment variables 1. Export required environment variables or prep .env file in application folder
```commandline Prepare .env file
export CELERY_BROKER_URL=redis://localhost:6379/0 Copy `.env_sample` and create `.env` with your OpenAI API token for the API_KEY and EMBEDDINGS_KEY fields
export CELERY_RESULT_BACKEND=redis://localhost:6379/1
export MONGO_URI=mongodb://localhost:27017/docsgpt (check out application/core/settings.py if you want to see more config options)
export FLASK_APP=application/app.py
export FLASK_DEBUG=true
```
2. Prepare .env file
Copy `.env_sample` and create `.env` with your OpenAI API token
3. (optional) Create a Python virtual environment 3. (optional) Create a Python virtual environment
```commandline ```commandline
python -m venv venv python -m venv venv