😈I'm the supreme fire demon knows everything about the attendance report!
Try it out: https://daily-prophet.github.io/Calcifer/
- Put the
.env
&document.md
file inbackend
folder - Make sure your python version >=
3.10
, then execute the following command line:
cd .\backend
python -m venv devenv
.\devenv\Scripts\activate
pip install --prefer-binary -r dev_requirements.txt
- start jupyter notebook in
backend
folder:
jupyter-lab
- we can use this command to run the server, if you want to auto reload serivce when develop, add --reload:
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
- You can use this curl command to test the backend service:
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -d '{"question": "who are you?"}' http://localhost:8000/ask