adema5051 commited on
Commit
377492f
·
verified ·
1 Parent(s): 4567893

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
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":