Skip to content

Commit

Permalink
Merge pull request #1104 from mhirki/deduplicate-captions
Browse files Browse the repository at this point in the history
Add deduplication of captions
  • Loading branch information
bghira authored Oct 27, 2024
2 parents 6a7efd8 + f1b1073 commit 6962afd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpers/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,9 @@ def get_all_captions(
# allow caching of multiple captions, if returned by the backend.
captions.extend(caption)

# Deduplicate captions
captions = list(set(captions))

return captions

@staticmethod
Expand Down

0 comments on commit 6962afd

Please sign in to comment.