update api and support abort eval in webui

This commit is contained in:
hiyouga
2024-05-04 15:59:15 +08:00
parent d4283bb6bf
commit ed8f8be752
11 changed files with 277 additions and 192 deletions

View File

@@ -118,6 +118,5 @@ class Evaluator:
f.write(score_info)
def run_eval():
evaluator = Evaluator()
evaluator.eval()
def run_eval() -> None:
Evaluator().eval()