Skip to content

Commit

Permalink
read state from request
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Oct 24, 2024
1 parent df7b3f3 commit ca2d8cf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ def start_comparison():


@server.post("/run_evaluation")
async def inference_pointcloud_ids(request: Request):
async def evaluate(request: Request):
req = await request.json()
run_evaluation(req["session_id"], req["project_id"])
state = req["state"]
run_evaluation(state["session_id"], state["project_id"])


@server.post("/run_comparison")
async def inference_pointcloud_ids(request: Request):
async def compare(request: Request):
req = await request.json()
run_compare(req["eval_dirs"])
state = req["state"]
run_compare(state["eval_dirs"])

0 comments on commit ca2d8cf

Please sign in to comment.