Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Aug 10, 2023
1 parent 2a6a892 commit 8716b8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cerulean_cloud/cloud_run_offset_tiles/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from cerulean_cloud.auth import api_key_auth
from cerulean_cloud.cloud_run_offset_tiles.schema import (
InferenceInput,
InferenceResult,
InferenceResultStack,
PredictPayload,
Expand Down Expand Up @@ -107,7 +108,7 @@ def ping() -> Dict:


def _predict(
inf_stack: List, model, inf_parms: Dict
inf_stack: List[InferenceInput], model, inf_parms: Dict
) -> List[
Union[
Tuple[np.ndarray, np.ndarray, List[float]],
Expand Down
4 changes: 2 additions & 2 deletions cerulean_cloud/cloud_run_orchestrator/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def get_base_tile_inference(
inf_stack=inf_stack, inf_parms=self.inference_parms
)
res = await self.client.post(
self.url + "/predict", json=payload, timeout=None
self.url + "/predict", json=payload.dict(), timeout=None
)
return InferenceResultStack(**res.json())

Expand Down Expand Up @@ -123,7 +123,7 @@ async def get_offset_tile_inference(
inf_stack=inf_stack, inf_parms=self.inference_parms
)
res = await self.client.post(
self.url + "/predict", json=payload, timeout=None
self.url + "/predict", json=payload.dict(), timeout=None
)
return InferenceResultStack(**res.json())

Expand Down

0 comments on commit 8716b8e

Please sign in to comment.