Skip to content

jinyang628/brain

Repository files navigation

Getting Started!

Set up .env

Make a copy of the .env.example file and name it as .env in the same directory. Remember to fill in the necessary fields/api keys

Create a virtual environment if you have yet to.

python3 -m venv venv

Activate virtual environment

MAC users

source venv/bin/activate

Windows users

venv\Scripts\activate

Install the latest dependencies used by others

pip install -r requirements.txt

Start the server

uvicorn app.main:app --reload --host 0.0.0.0 --port 8081

Before pushing

Update requirements.txt with the latest dependencies you installed

pip freeze > requirements.txt

Add test cases

Make sure that there is a __init__.py file at every level of the test cases

Run the following command at the root of the repository pytest

Check style

Run the following command at the root of the repository black .

Common issues

No module named 'app'

export PYTHONPATH="/Users/{MAC_NAME}/brain:$PYTHONPATH"

About

The AI inference strategy of StillHuman

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published