Skip to content

Commit

Permalink
Py typing fix
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 615594853
  • Loading branch information
Googler committed Mar 14, 2024
1 parent 45887d3 commit d70e3d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lit_nlp/components/cf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def update_prediction(
label_names = pred_spec.vocab
pred_class = np.argmax(prediction)
example_label = label_names[pred_class]
example[label_key] = example_label
if label_key is not None:
example[label_key] = example_label


def is_prediction_flip(
Expand Down

0 comments on commit d70e3d3

Please sign in to comment.