This application predicts the likelihood of a dengue outbreak based on weather conditions using a pre-trained model and real-time weather data. The app visualizes predictions on an interactive map of India.
- User Inputs: Temperature, Humidity, Rainfall, and Wind data.
- Map Integration: India map visualization with color-coded dengue prediction zones.
- Real-Time Weather Data: Uses OpenWeather API to fetch live data.
- Prediction Model: Machine learning model trained to predict dengue likelihood.
- Python 3.6+
- Joblib, Flask, Requests, Folium libraries
-
Clone the repository:
git clone https://github.com/yourusername/dengue-prediction-app.git cd dengue-prediction-app
-
Install dependencies:
pip install -r requirements.txt
-
Add OpenWeather API Key: Replace
API_KEY
inapp.py
with your OpenWeather API key. -
Place the ML model file: Make sure
dengue_model.pkl
is in the specified directory or update the path inapp.py
.
-
Run the Flask App:
python app.py
-
Open in Browser: Navigate to
http://127.0.0.1:5000/
to access the app.Here's the updated section for your GitHub README:
- Install Daytona: Follow the Daytona installation guide.
- Create the Workspace:
daytona create <SAMPLE_REPO_URL>
- Install Dependencies:
Follow the setup instructions in the main README to install the required dependencies. - Start the Application:
python app.py
- app.py: Main Flask application file.
- templates/index.html: HTML template with prediction form and map.
- static/style.css: Basic styling for the web app.
- dengue_model.pkl: Pre-trained machine learning model file.
- requirements.txt: List of dependencies required for the project.
Feel free to open issues, contribute, or suggest improvements!