Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmilkov committed Feb 5, 2024
1 parent 13f301b commit e4c46c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lilac/data/cluster_titling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import functools
import random
from typing import Any, Iterator, Optional, cast
from typing import Any, Iterator, Optional, Sequence, cast

import instructor
import modal
Expand Down Expand Up @@ -340,6 +340,7 @@ def _compute_title(
) -> list[tuple[int, Optional[str]]]:
if batch_size is None:
topic_fn_no_batch = cast(TopicFnNoBatch, topic_fn)
topics: Sequence[Optional[str]]
if batch_docs and batch_docs[0]:
topics = [topic_fn_no_batch(batch_docs[0])]
else:
Expand Down

0 comments on commit e4c46c2

Please sign in to comment.