We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acbf1a1 commit 94be50aCopy full SHA for 94be50a
1 file changed
evaluation_function/evaluation.py
@@ -11,7 +11,7 @@ def validate_fsa(value: str | dict) -> Tuple[FSA, Params]:
11
"""Parse a FSA from JSON string or dict."""
12
if isinstance(value, str):
13
return FSAFrontend.model_validate_json(value).toFSA()
14
- return FSAFrontend.model_validate(value).toFSA(), json.loads(FSAFrontend.model_validate(value).config)
+ return FSAFrontend.model_validate(value).toFSA(), Params.model_validate_json(FSAFrontend.model_validate(value).config)
15
16
def evaluation_function(
17
response: Any = None,
0 commit comments