Skip to content

Commit

Permalink
hotfix transformers version 4.41 (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhangpurdue authored May 20, 2024
1 parent bc3a365 commit 28e6db6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modelscope_agent/tools/hf_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

import json
from modelscope_agent.tools.base import BaseTool, register_tool
from transformers.tools import Tool as HFTool

try:
from transformers.tools import Tool as HFTool
except ImportError:
from transformers import Tool as HFTool


@register_tool('hf-tool')
Expand Down

0 comments on commit 28e6db6

Please sign in to comment.