Skip to content

Commit dbbc05e

Browse files
committed
fix: params.param shape
1 parent cccffd3 commit dbbc05e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/evaluation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,14 @@ def evaluation_function(response, answer, param=None):
116116
print("param is None, set default...") #TODO: debugging
117117
param = Param()
118118
elif type(param) is dict:
119-
print("param is dict, load them...") #TODO: debugging
120119
if "param" in param:
121120
param = param["param"]
122-
param = Param(**param)
121+
if param is None:
122+
print("param is None, set default...") #TODO: debugging
123+
param = Param()
124+
else:
125+
print("param is dict, load param: ", param) #TODO: debugging
126+
param = Param(**param)
123127
print("param: ", param) #TODO: debugging
124128

125129
# Initialize LLM

0 commit comments

Comments
 (0)