m00913563 commited on
Commit
43da11c
·
1 Parent(s): 1ee78e5

fix inside scructure

Browse files
Files changed (1) hide show
  1. evaluator.py +2 -2
evaluator.py CHANGED
@@ -109,7 +109,7 @@ def gpt_evaluator(payload, fewshot, response_format):
109
  ],
110
  response_format=Evaluations)
111
  json_str = response.choices[0].message.parsed
112
- return json_str.value
113
 
114
  def extract_competences_and_responses(competences: list[str], transcripts: list[dict]):
115
  responses = []
@@ -198,7 +198,7 @@ def evaluate_interview(competences: list[str], transcript: list):
198
  )
199
  ## output:
200
  final_score = 0
201
- behavioral_scores = generate_behavioral_score(result)
202
  technical_scores = generate_technical_score(competences, transcript["technical"])
203
 
204
  final_score = aggregate_scores(behavioral_scores, technical_scores)
 
109
  ],
110
  response_format=Evaluations)
111
  json_str = response.choices[0].message.parsed
112
+ return json_str
113
 
114
  def extract_competences_and_responses(competences: list[str], transcripts: list[dict]):
115
  responses = []
 
198
  )
199
  ## output:
200
  final_score = 0
201
+ behavioral_scores = generate_behavioral_score(result.value)
202
  technical_scores = generate_technical_score(competences, transcript["technical"])
203
 
204
  final_score = aggregate_scores(behavioral_scores, technical_scores)