An interactive, AI-powered dashboard for analyzing residency trends, demographic data, and sentiment analysis.
Proxima Tech Smart Dashboard combines Streamlit, Plotly, and OpenAI's API to provide insights into demographic trends and immigration data, with interactive plots and AI-enhanced analysis.
- Features
- Installation
- Usage
- Code Walkthrough
- Example Outputs
- Project Structure
- Contributing
- License
- Contact
- AI-Powered Insights: Uses OpenAI's API to generate meaningful responses to user queries.
- Interactive Visualizations: Leverages Plotly to create dynamic charts (scatter plots, heatmaps, and bar charts).
- Synthetic Data Generation: Generates realistic datasets for trust, corruption, and policy impact analysis.
- Custom News Feed: Displays curated news headlines with sentiment analysis.
- User-Friendly Interface: Built using Streamlit for a seamless user experience.
Follow these steps to set up the dashboard locally:
-
Clone the Repository:
git clone https://github.com/velocitatem/proxima_tech.git cd proxima_tech
-
Set Up a Virtual Environment:
python3 -m venv venv source venv/bin/activate # For Linux/Mac venv\Scripts\activate # For Windows
-
Install Dependencies:
pip install -r requirements.txt
-
Set Environment Variables: Add your OpenAI API key to a
.env
file in the project directory:OPENAI_API_KEY=your_openai_api_key
-
Run the Application:
streamlit run main.py
- Launch the dashboard and use the sidebar to enter your query.
- View AI-generated answers, interactive charts, and curated news.
- Explore synthetic data visualizations like:
- Trust in Government vs. Corruption Perception
- Policy Impact Score vs. Sentiment Analysis
main.py
: Entry point for the Streamlit application.generate_data()
: Creates a synthetic dataset with demographic and trust metrics.get_data()
: Fetches AI-generated insights from OpenAI's API and caches results.extract_data()
: Extracts CSV-formatted responses for plotting.generate_plot()
: Creates visualizations dynamically based on the data.NEWS
: Static news data with sentiment scores for display.
- "Venezuelan residents in Spain increased by 46% this year, reaching 140,214 approvals." ✅
- "There was a significant 75% decrease in residency approvals for Ukrainians." ❌
User queries like "What is the demographic distribution of immigrants?" produce real-time visualizations.
proxima_tech/
├── main.py # Streamlit dashboard entry point
├── cache.json # Local cache for API responses
├── requirements.txt # Project dependencies
├── .env # OpenAI API Key
└── README.md # Project documentation
We welcome contributions! Follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/my-feature
- Commit your changes:
git commit -m "Add my feature"
- Push to the branch:
git push origin feature/my-feature
- Open a pull request on GitHub.
Proxima Tech Smart Dashboard — Empowering data-driven decisions with AI-powered visualizations 🚀.