Spaces:
Sleeping
Sleeping
Muhammed Essam
commited on
Commit
·
db6d0c8
1
Parent(s):
75fbdf4
Fix dependencies and add all required files
Browse files- requirements.txt +9 -4
requirements.txt
CHANGED
|
@@ -4,17 +4,22 @@
|
|
| 4 |
# Gradio for the web interface
|
| 5 |
gradio>=4.0.0
|
| 6 |
|
| 7 |
-
# AI/ML Core Libraries
|
|
|
|
|
|
|
| 8 |
sentence-transformers>=2.2.0 # For division matching embeddings
|
| 9 |
openai-whisper>=20231117 # For speech-to-text
|
| 10 |
gliner>=0.1.0 # For name extraction
|
| 11 |
|
| 12 |
# Scientific Computing
|
| 13 |
-
numpy>=1.24.0
|
| 14 |
scipy>=1.10.0 # For audio file handling
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
torch>=2.0.0
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# Standard Libraries (usually included but good to specify)
|
| 20 |
# Note: logging, os, tempfile, pathlib, typing, difflib, re are standard library
|
|
|
|
| 4 |
# Gradio for the web interface
|
| 5 |
gradio>=4.0.0
|
| 6 |
|
| 7 |
+
# AI/ML Core Libraries - with version pinning for compatibility
|
| 8 |
+
transformers>=4.35.0,<5.0.0 # Transformer models (needed for sentence-transformers)
|
| 9 |
+
accelerate>=0.25.0 # Required by transformers for init_empty_weights
|
| 10 |
sentence-transformers>=2.2.0 # For division matching embeddings
|
| 11 |
openai-whisper>=20231117 # For speech-to-text
|
| 12 |
gliner>=0.1.0 # For name extraction
|
| 13 |
|
| 14 |
# Scientific Computing
|
| 15 |
+
numpy>=1.24.0,<2.0.0 # Pin to avoid compatibility issues
|
| 16 |
scipy>=1.10.0 # For audio file handling
|
| 17 |
|
| 18 |
+
# PyTorch - CPU version for HF Spaces
|
| 19 |
+
torch>=2.0.0
|
| 20 |
+
|
| 21 |
+
# Data Validation
|
| 22 |
+
pydantic>=2.0.0 # For models.py
|
| 23 |
|
| 24 |
# Standard Libraries (usually included but good to specify)
|
| 25 |
# Note: logging, os, tempfile, pathlib, typing, difflib, re are standard library
|