Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot publish to hub if the tool has a file object (bytes/BytesIO) as input? #427

Open
theBrandonWu opened this issue Jan 30, 2025 · 0 comments

Comments

@theBrandonWu
Copy link

I am trying to publish a tool to HG but ran into an issue - it seems like I cannot publish a tool if it takes a file object as input. I am passing an image to the tool.

The error comes from utils.py line 363-364

try:
        return textwrap.dedent(inspect.getsource(obj)).strip()

Log: TypeError: module, class, method, function, traceback, frame, or code object was expected, got _SpecialForm

Am I missing something obvious?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant