Skip to content

Commit 4fbec4c

Browse files
committed
fix: params
1 parent b78b72a commit 4fbec4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/evaluation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ def evaluation_function(response, answer, param=None):
108108
response = compareTextLists(response)
109109

110110

111-
112-
113111
start_time = time.process_time()
114112

115-
# Ensure param is provided
113+
# Ensure config is provided
116114
if param is None:
117115
param = Param()
116+
elif type(param) is dict:
117+
param = Param(**param)
118118

119119
# Initialize LLM
120120
llm = setup_llm(param)

0 commit comments

Comments
 (0)