/billbriefs-streamlit

Webapp for BillBriefs.com

Primary LanguageJupyter NotebookMIT LicenseMIT

Setup

  1. clone this repo
  2. cd in dir
  3. conda create -n [envname] python=3.10
  4. conda activate [envname]
  5. pip install -r requirements.txt
  6. Add your API keys to .streamlit/secrets.toml. Create the file if needed.

Run

streamlit run streamlit_app.py

Notes

App Flow for voters

  1. User inputs address
  2. App gets applicable members
  3. App gets all bills during member tenor
  4. GPT summarizes all bills to 1 liners
  5. User swipes on one-liners (support, oppose, or skip)
  6. App shows the alignment of the voter with members up for re-election

Call it elective review

Future ideas:
Some members might come back to challenge the current person. Take their past voting records and rank it against the user.
Allow new candidates running for election to display how they would've voted for past bills.