Spaces:
Sleeping
Sleeping
Update api.py
Browse files
api.py
CHANGED
|
@@ -372,7 +372,7 @@ def predict_all(req: MultiHazardRequest):
|
|
| 372 |
}
|
| 373 |
|
| 374 |
|
| 375 |
-
|
| 376 |
|
| 377 |
import numpy as np # needed for explain endpoint
|
| 378 |
|
|
@@ -809,7 +809,7 @@ def get_flood_risk_single_city(city_name: str):
|
|
| 809 |
"flood_features": flood_features,
|
| 810 |
**prediction_result_to_dict(result),
|
| 811 |
"timestamp": datetime.now().isoformat(),
|
| 812 |
-
}
|
| 813 |
# ============================================================================
|
| 814 |
# LANE-LEVEL FLOOD MAP ENDPOINTS
|
| 815 |
# ============================================================================
|
|
|
|
| 372 |
}
|
| 373 |
|
| 374 |
|
| 375 |
+
|
| 376 |
|
| 377 |
import numpy as np # needed for explain endpoint
|
| 378 |
|
|
|
|
| 809 |
"flood_features": flood_features,
|
| 810 |
**prediction_result_to_dict(result),
|
| 811 |
"timestamp": datetime.now().isoformat(),
|
| 812 |
+
}
|
| 813 |
# ============================================================================
|
| 814 |
# LANE-LEVEL FLOOD MAP ENDPOINTS
|
| 815 |
# ============================================================================
|