Fix module-level transformers import crashing manage.py test#11
Fix module-level transformers import crashing manage.py test#11andreisugu merged 3 commits intomainfrom
Conversation
…e.py test to run Co-authored-by: andreisugu <35407471+andreisugu@users.noreply.github.com>
|
@copilot |
Co-authored-by: andreisugu <35407471+andreisugu@users.noreply.github.com>
The CI was still failing because |
from transformers import pipelineat module level incore/views.pycauses import failure whentransformersis not installed, crashingmanage.py testtransformersimport inside theanalyze_sentimentfunction where it's actually used (lazy import)requestsmodule was missing fromrequirements.txt, causingModuleNotFoundError: No module named 'requests'in CI after the transformers fixrequeststorequirements.txtpython manage.py testruns successfully (exits cleanly with "Found 0 test(s). Ran 0 tests in 0.000s")✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.