The Drug Dashboard is an interactive web application built with Dash that allows users to analyze data related to controlled prescription drugs in Michigan. The dashboard features an AI agent that can generate tables, create charts, and provide insights based on the provided data.
The data for the dashboard is sourced from the Michigan Department of Licensing and Regulatory Affairs. You can find the data here. This dataset includes information on prescription data across different regions, patient demographics, and prescription characteristics.
- Docker
- An
.env
file with the following environment variable:OPENAI_API_KEY
(required for AI analysis)
git clone https://github.com/dx-li/drug-dashboard.git
cd drug-dashboard
To build the Docker image for the dashboard, run the following command in the project directory:
docker build -t drug-dashboard .
Once the image is built, you can run the dashboard using Docker. Use the command below, making sure to map your local data directory:
docker run -v ./data:/app/data -p 8050:8050 drug-dashboard
After running the Docker container, you can access the dashboard by opening your web browser and navigating to http://localhost:8050
.
The AI agent in the dashboard is designed to analyze the provided data. Ensure that the .env
file containing your OPENAI_API_KEY
is located in the project directory. This key is necessary for the AI functionalities.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! If you have suggestions or improvements, please create a pull request or open an issue.