Artificial Intelligence insights on the administrative costs of brazilian federal public administration using Python
, Streamlit
, Plotly
and ChatGPT
.
These expenses form the basis for the provision of public services and include current expenses related to administrative support, electricity, water, telephone, property rental, among others.
Demonstration:
The data are consulted from the Brazilian Open Data Portal between 2020 and 2023.
- Clone repository
git clone https://github.com/washolive/public-costs-br.git
- Fill the OpenAI API Key
cd public-costs-br
cp .streamlit/sample_secrets.toml .streamlit/secrets.toml
Open file
.streamlit/secrets.toml
to edit and fill your API Key in the string inside<>
.
- Create or use an existing Virtual Env
- Install the necessary packages and run
pip install -r requirements.txt
streamlit run src/main.py
docker build --rm -t costs-br .
docker run -p 8501:8501 costs-br
docker-compose build
docker-compose up