Test fix for #11 (#12)

This commit is contained in:
Piotr Skalski
2023-03-28 03:39:44 +02:00
committed by GitHub
parent 858efccbad
commit c974f60d73
3 changed files with 8 additions and 21 deletions

View File

@@ -71,7 +71,7 @@ def predict(
tokenized = tokenizer(caption)
phrases = [
get_phrases_from_posmap(logit > text_threshold, tokenized, caption).replace('.', '')
get_phrases_from_posmap(logit > text_threshold, tokenized, tokenizer).replace('.', '')
for logit
in logits
]