-
Notifications
You must be signed in to change notification settings - Fork 239
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: catch RuntimeError for missing torch import #532
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Bug fix, Tests
Description
Catch
RuntimeError
for missingtorch
import in HuggingFaceEncoder.Update test case to validate
transformers
import error handling.Improve robustness of import error handling in
HuggingFaceEncoder
.Changes walkthrough 📝
huggingface.py
Enhance import error handling in HuggingFaceEncoder
semantic_router/encoders/huggingface.py
RuntimeError
handling for missingtorch
import.transformers
library.test_huggingface.py
Update test for import error handling in HuggingFaceEncoder
tests/unit/encoders/test_huggingface.py
transformers
import error handling.