Spaces:
Running
Running
Twin
commited on
Commit
·
073284e
1
Parent(s):
414faa2
Fix BERT dependencies - add to pyproject.toml
Browse files🔧 Fix: HuggingFace Spaces uses pyproject.toml instead of requirements.txt
Dependencies added to pyproject.toml:
- torch>=2.0.0,<2.3.0 (PyTorch for BERT inference)
- transformers>=4.35.0 (HuggingFace Transformers library)
- tokenizers>=0.15.0 (Fast tokenization support)
This should resolve the ModuleNotFoundError for torch.
- pyproject.toml +5 -0
pyproject.toml
CHANGED
|
@@ -27,6 +27,11 @@ dependencies = [
|
|
| 27 |
|
| 28 |
# Basic data processing
|
| 29 |
"numpy>=1.24.0",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
]
|
| 31 |
|
| 32 |
[tool.uv]
|
|
|
|
| 27 |
|
| 28 |
# Basic data processing
|
| 29 |
"numpy>=1.24.0",
|
| 30 |
+
|
| 31 |
+
# BERT and ML dependencies
|
| 32 |
+
"torch>=2.0.0,<2.3.0",
|
| 33 |
+
"transformers>=4.35.0",
|
| 34 |
+
"tokenizers>=0.15.0",
|
| 35 |
]
|
| 36 |
|
| 37 |
[tool.uv]
|