Spaces:
Sleeping
Sleeping
Add torch dependency for transformers
Browse filesFix 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
- 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
|