git clone https://github.com/StockerMC/Eloquence
cd Eloquence
cd backend
(python) -m venv venv
- LINUX ONLY:
chmod +x venv/bin/activate
(if this command fails, try a different activate file) 6)venv/scripts/activate
(Windows) orvenv/bin/activate
(Linux) (python) -m pip install -r requirements.txt
- NOTE: It will take quite a while to download all the models, but this only needs to be done once.cd ../frontend
npm i
cd
into thebackend
folder- Copy
env.example.py
intoenv.py
and set yourOPENAI_API_KEY
- Run
uvicorn server:app --port 3000
to start the backend server. Keep note of the ip address that is outputted.
cd
into thefrontend
folder- Create a file named
.env
- Copy the contents of
.env.example
into.env
- Change the value of
SECRET_BACKEND_SERVER_ADDRESS
to the address of the backend - Run
npm run preview
to run the website