Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Oct 24, 2024
1 parent 933a09d commit ff78a8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ def start_comparison():


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


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

0 comments on commit ff78a8b

Please sign in to comment.