This repository is dedicated to suggesting contributions to the Digital Democracy Project. The repository is going to be dedicated to implementing AI functionality to the project, mostly in Python.
The 'Democracy_Project.ipynb' file is a notebook file that includes teh start of a pipeline that extracts relevant information from the official Florida Senate Website FLSenate.gov, and manipulate the data to fit the needs of the Digital Democracy Project.
- Extracting Bill Information from Webpage: This notebook data mines the bill information directly from the Florida Senate Website. I see that the website is structured where there is a specific format for the URLs and the last part of the URL contains the specific bill in question. By providng the URL for the bill, this code is able to extract the relevant info.
- Downloading the Bill Information for Analysis: This code below downloads the PDF of the bill and extracts the texual information needed for summarization.
- Summarizing Each Page of the Bill with OpenAI API: This feature is able to use the .PDF extracted in the file directory. Then, it calls the OpenAI API to summarize each page and print the summaries to make it easier for the staff at the Digital Democracy Project to summarize the bills for the users of the app
- Create Multiple Translations of Bills & Summaries
- Create Pro's and Con's for each bill using OpenAI API
- Generate a better format for each bill that includes all relevant information for each bill
- Create a user interface that is easy to use for people at the Digital Democracy Project.