Skip to content

Commit

Permalink
small adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
tssweeney committed Jan 6, 2025
1 parent ad17e17 commit c6addc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion weave/flow/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,11 @@ async def predict_and_score(self, model: Union[Op, Model], example: dict) -> dic
except Exception:
print("model_output failed")
traceback.print_exc()
model_output = None
return {
self._output_key: None,
"scores": {},
"model_latency": time.time() - model_start_time,
}
model_latency = time.time() - model_start_time

scores = {} # TODO: Consider moving scorer setup and checks out of `predict_and_score`
Expand Down

0 comments on commit c6addc7

Please sign in to comment.