Skip to content

Commit

Permalink
Merge pull request #290 from Haidra-Org/transformers-breaking-change
Browse files Browse the repository at this point in the history
fix: prevent 'CLIPTokenizer' object has no attribute 'split_special_tokens' error
  • Loading branch information
tazlin authored Aug 24, 2023
2 parents fc9946e + 0d085d3 commit 2d12545
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
torch # We have to place it here otherwise it installs the CPU version
pydantic==1.10.12
horde_model_reference~=0.2.2
transformers==4.30.2
hordelib==1.6.2
gradio
pyyaml
Expand Down
2 changes: 1 addition & 1 deletion worker/jobs/scribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def start_job(self):
loop_retry += 1
time.sleep(3)
continue
if type(gen_req.json()) is not dict:
if not isinstance(gen_req.json(), dict):
logger.error(
(
f"KAI instance {self.bridge_data.kai_url} API unexpected response on generate: {gen_req}. "
Expand Down

0 comments on commit 2d12545

Please sign in to comment.