Spaces:
Running
Running
gary-boon
commited on
Commit
·
97df962
1
Parent(s):
2b0064a
Fix: Downgrade transformers to 4.36.2 for PyTorch 2.1.0 compatibility
Browse files- transformers 4.53.1 requires PyTorch 2.6+ (weights_only parameter)
- Using transformers 4.36.2 which is compatible with PyTorch 2.1.0
- Still fixes the original ReDoS vulnerabilities (CVE-2025-3933, CVE-2025-5197)
- Resolves HuggingFace Space startup error
- requirements.txt +1 -1
requirements.txt
CHANGED
@@ -7,7 +7,7 @@ pydantic==2.5.0
|
|
7 |
|
8 |
# Machine Learning
|
9 |
torch==2.1.0
|
10 |
-
transformers==4.
|
11 |
accelerate==0.24.1
|
12 |
|
13 |
# Utilities
|
|
|
7 |
|
8 |
# Machine Learning
|
9 |
torch==2.1.0
|
10 |
+
transformers==4.36.2
|
11 |
accelerate==0.24.1
|
12 |
|
13 |
# Utilities
|