markdown
This API predicts forest fire likelihood based on temperature, oxygen levels, and humidity.
https://firetrack-python-api.onrender.com/predict_forest
temperature
: The temperature in Celsius.oxygen
: The oxygen level in percentage.humidity
: The humidity level in percentage.
GET /predict_forest?temperature=25&oxygen=18&humidity=60
{
"temperature": 25,
"oxygen": 18,
"humidity": 60,
"prediction": "Low"
}
temperature
: The temperature value from the request.oxygen
: The oxygen value from the request.humidity
: The humidity value from the request.prediction
: The predicted fire likelihood categorized as "Low", "Medium", or "High".
- Clone the repository:
git clone <repository_url>
- Install dependencies:
pip install -r requirements.txt
- Run the server:
python app.py
- Python 3.x
- Fastapi
- scikit-learn (for prediction model)
This project is licensed under the MIT License - see the LICENSE file for details.
Replace `<repository_url>` with the actual URL of your repository. This README provides comprehensive documentation on how to use the API, set it up, its dependencies, and its license.