Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -284,6 +284,7 @@ async def assess_multihazard(data: SingleAssessment) -> Dict:
|
|
| 284 |
@app.post("/get_height_gba")
|
| 285 |
async def get_height_gba(data: SingleAssessment):
|
| 286 |
try:
|
|
|
|
| 287 |
result = gba_getter.get_height_m(data.latitude, data.longitude, buffer_m=5.0)
|
| 288 |
|
| 289 |
if result.get("status") != "success":
|
|
|
|
| 284 |
@app.post("/get_height_gba")
|
| 285 |
async def get_height_gba(data: SingleAssessment):
|
| 286 |
try:
|
| 287 |
+
from api.batch import gba_getter
|
| 288 |
result = gba_getter.get_height_m(data.latitude, data.longitude, buffer_m=5.0)
|
| 289 |
|
| 290 |
if result.get("status") != "success":
|