Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tssweeney committed Jan 7, 2025
1 parent f46fa06 commit e0a5017
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions weave/trace/weave_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,10 @@ async def apply_scorer(

model_inputs = {k: v for k, v in self.inputs.items() if k != "self"}
example = {**model_inputs, **(additional_scorer_kwargs or {})}
apply_scorer_result = await apply_scorer_async(scorer, example, self.output)
output = self.output
if isinstance(output, Ref):
output = output.get()
apply_scorer_result = await apply_scorer_async(scorer, example, output)
score_call = apply_scorer_result.score_call

wc = weave_client_context.get_weave_client()
Expand Down Expand Up @@ -866,7 +869,7 @@ def finish_call(
postprocessed_output = original_output
self._save_nested_objects(postprocessed_output)

call.output = map_to_refs(postprocessed_output)
# call.output = map_to_refs(postprocessed_output)

# Summary handling
summary = {}
Expand Down

0 comments on commit e0a5017

Please sign in to comment.