Skip to content

Commit

Permalink
Rerun formatting with more recent black version
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaarsen committed Jan 31, 2024
1 parent d806957 commit 0f0db42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/setfit/model_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ def add_naive_word_count(sample: Dict[str, Any]) -> Dict[str, Any]:
else:
self.train_set_sentences_per_label_list = [
{
"Label": self.model.labels[label]
if self.model.labels and isinstance(label, int)
else str(label),
"Label": (
self.model.labels[label] if self.model.labels and isinstance(label, int) else str(label)
),
"Training Sample Count": count,
}
for label, count in sorted(counter.items())
Expand Down

0 comments on commit 0f0db42

Please sign in to comment.