Developer Docs
Table of contents
Docker image
There is a Docker image available on the GitHub Container Registry at ghcr.io/astrabert/greenfit-ai
.
You can choose two ways to use the Docker image:
- From the pre-built image:
- Pull the image: we advise you pull the
main
tag, as it is on track with the latest modifications to the appdocker pull ghcr.io/astrabert/beans-ai:main
- Create a
.streamlit/secrets.toml
as specified in the previous section - Create a
.env
file and specify the path to.streamlit/secrets.toml
under theSTREAMLIT_SECRETS_PATH
variable - Launch docker compose and find the app http://localhost:8501:
docker compose up -d
- Pull the image: we advise you pull the
- Build the image yourself (assuming you have cloned the repository and you are inside it):
- Create a
.streamlit/secrets.toml
as specified in the previous section - Create a
.env
file and specify the path to.streamlit/secrets.toml
under theSTREAMLIT_SECRETS_PATH
variable - Launch docker compose with the build option and find the app http://localhost:8501:
docker compose -f compose.build.yaml up -d
- Create a
Find an example of the .env
file on .env.example
Building the app from source
You can build the app from source by:
- Cloning the GitHub repo:
git clone https://github.com/AstraBert/greenfit-ai
cd greenfit-ai
- Create a virtual environment and activate it:
python3 -m venv streamlit-app
source streamlit-app/bin/activate
- Install the required dependencies:
python3 -m pip install -r requirements.txt
- Build your
.streamlit/secrets.toml
file like this:
rapid_api_key="RAPID_API_KEY"
openai_api_key="OPENAI_API_KEY"
qdrant_api_key="QDRANT_API_KEY"
qdrant_url="QDRANT_URL"
courier_auth_token="COURIER_AUTH_TOKEN"
supa_key="SUPABASE_ANON_KEY"
supa_url="SUPABASE_URL"
- Run the application:
python3 -m streamlit run app.py