File size: 570 Bytes
1b53de0
 
 
 
 
 
454b207
1b53de0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454b207
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
title: Rockfall Risk Prediction
emoji: ⛏️
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.44.1
app_file: app.py
pinned: false
---
# 🚀 Rockfall Prediction API (FastAPI + XGBoost)

This is a machine learning API that predicts **rockfall risks in open-pit mines** using geotechnical, environmental, and sensor data.

## 📌 Endpoints
- **`GET /`** → Health check  
- **`POST /predict`** → Send JSON input and receive a prediction

### Example request:
```json
{
  "slope_angle": 45,
  "rainfall": 120,
  "displacement": 0.02,
  "temperature": 28
}