score batch

This commit is contained in:
Xi Yan 2024-10-23 16:38:00 -07:00
parent eb572faf6f
commit 3c6555c408
4 changed files with 34 additions and 10 deletions

View file

@ -113,7 +113,7 @@ async def run_main(host: str, port: int):
input_rows=response.rows,
scoring_functions=["equality"],
)
cprint(f"scoring response={response}", "blue")
cprint(f"score response={response}", "blue")
# test scoring batch using datasetio api
scoring_client = ScoringClient(f"http://{host}:{port}")
@ -121,7 +121,7 @@ async def run_main(host: str, port: int):
dataset_id="test-dataset",
scoring_functions=["equality"],
)
cprint(f"scoring response={response}", "blue")
cprint(f"score_batch response={response}", "cyan")
def main(host: str, port: int):