Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.58 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.58 KB

Brazilian public costs insights

pt-br

Streamlit App

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.

Install

  1. Clone repository
git clone https://github.com/washolive/public-costs-br.git
  1. 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 <>.

Execute

Running Streamlit from the command line

  1. Create or use an existing Virtual Env
  2. Install the necessary packages and run
pip install -r requirements.txt
streamlit run src/main.py

Or using Docker container

docker build --rm -t costs-br .
docker run -p 8501:8501 costs-br

Or using Docker Compose

docker-compose build
docker-compose up

Open

http://localhost:8501