Road Accident Prediction API π
This is a Flask-based Machine Learning API hosted on Hugging Face Spaces using Docker. It predicts the likelihood or severity of road accidents based on input features.
π Project Structure
- App.py: Main Flask application and API routes.
- road_accident_model.pkl: The trained predictive model (Random Forest/XGBoost etc).
- encoder.pkl: Pickle file for categorical data encoding.
- requirements.txt: Python dependencies (Flask, scikit-learn, pandas).
- Dockerfile: Container configuration to run the Flask server.
π Setup and Installation
- Clone the repository:
git clone [https://huggingface.co/spaces/Dexter0907/Accidental_AI](https://huggingface.co/spaces/Dexter0907/Accidental_AI) cd Accidental_AI
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support