stackConsult commited on
Commit
647cada
·
verified ·
1 Parent(s): f9178b3

Add torch dependency for transformers

Browse files

Fix runtime error: added torch>=2.0.0 as a dependency. The transformers library requires PyTorch (torch) to initialize pipelines. This resolves the NameError: name 'torch' is not defined error in transformers/pipelines/__init__.py

Files changed (1) hide show
  1. requirements.txt +3 -0
requirements.txt CHANGED
@@ -13,6 +13,9 @@ pandas>=2.0.0
13
 
14
  # Agent framework - vendor neutral
15
  # smolagents will be our own implementation
 
 
 
16
  transformers>=4.35.0 # Required for HuggingFace models in lead_scoring_agent.py
17
 
18
  # Optional: Additional tool support
 
13
 
14
  # Agent framework - vendor neutral
15
  # smolagents will be our own implementation
16
+
17
+ # ML/NLP dependencies for lead_scoring_agent.py
18
+ torch>=2.0.0 # Required by transformers
19
  transformers>=4.35.0 # Required for HuggingFace models in lead_scoring_agent.py
20
 
21
  # Optional: Additional tool support