Rogaton
Claude
commited on
Commit
·
4a9f7cf
1
Parent(s):
0bf8a8c
Fix transformers ImportError by pinning compatible versions
Browse files- Updated torch to >=2.0.0 (was unpinned)
- Updated transformers to >=4.35.0 (from >=4.30.0)
- Added protobuf>=3.20.0 (required by transformers)
- Added accelerate>=0.20.0 (improves model loading)
This resolves the ImportError for AutoTokenizer and AutoModelForSeq2SeqLM
that prevented the translation feature from working.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- requirements.txt +4 -2
requirements.txt
CHANGED
|
@@ -2,7 +2,9 @@ streamlit
|
|
| 2 |
huggingface_hub
|
| 3 |
lxml
|
| 4 |
stanza
|
| 5 |
-
torch
|
| 6 |
-
transformers>=4.
|
| 7 |
sentencepiece>=0.1.99
|
|
|
|
|
|
|
| 8 |
pyswip>=0.2.10
|
|
|
|
| 2 |
huggingface_hub
|
| 3 |
lxml
|
| 4 |
stanza
|
| 5 |
+
torch>=2.0.0
|
| 6 |
+
transformers>=4.35.0
|
| 7 |
sentencepiece>=0.1.99
|
| 8 |
+
protobuf>=3.20.0
|
| 9 |
+
accelerate>=0.20.0
|
| 10 |
pyswip>=0.2.10
|