Skip to content

Commit

Permalink
fix: revert tokenizer chagne
Browse files Browse the repository at this point in the history
  • Loading branch information
numb3r3 committed Jul 29, 2022
1 parent 9bfacf0 commit d29de44
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/clip_server/model/tokenization.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ def __init__(self, name: str, **kwargs):
self._name = name
if name in _MULTILINGUALCLIP_MODELS:
import transformers
import os

os.environ["TOKENIZERS_PARALLELISM"] = "false"
self._tokenizer = transformers.AutoTokenizer.from_pretrained(name)
else:
from clip_server.model.simple_tokenizer import SimpleTokenizer
Expand Down

0 comments on commit d29de44

Please sign in to comment.