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

Fix the Image class's from_url method error #1903

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DigitalPig
Copy link

This should address the #1902 .

Also, I found there are some dependencies missing when running the test from a fresh virtual environment so add them in the pyproject.toml file. Please let me know if that is the best place to hold them? Thank you!

pyproject.toml Outdated
@@ -45,6 +45,7 @@ dependencies = [
"anyio",
"asyncer==0.0.8",
"cachetools",
"transformers>=4.47.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @DigitalPig for the PR!! Why add transformers?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ImportError while importing test module '/home/digitalpig/Codes/dspy/tests/modules/test_hf_model.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/modules/test_hf_model.py:2: in <module>
    from transformers import AutoModelForSeq2SeqLM
E   ModuleNotFoundError: No module named 'transformers'

Maybe the best place to put is the [dev] section?

@DigitalPig
Copy link
Author

@okhat let me know if there is anything else you see potential improvements before it can be merged? Thanks and Happy Holidays!

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

Successfully merging this pull request may close these issues.

2 participants