Create python venv
python -m venv venv
Install Python dependencies
pip install -r requirements.txt
Install React dependencies
cd frontend
npm install
# build static webpage
npm run build
Add config.json
file in your root path
(I use Azure OpenAI resource here)
config.json
:
{
"OpenAI": {
"endpoint": "YOUR ENDPOINT",
"key": "YOUR API KEY",
"model": "MODEL DEPLOYMENT NAME"
}
}
- Run backend web service (Flask)
cd backend
flask run
TBD