Spaces:
Sleeping
Sleeping
Commit ·
6a45d88
1
Parent(s): cf02b75
FIX: Add spaCy model for PyABSA compatibility
Browse filesFixed PyABSA dependency (uncommented in requirements)
Added spaCy English model to requirements
Updated Dockerfile to install en_core_web_sm
PyABSA multilingual checkpoint already working!
Status: Final dependency fix for complete deployment
- Dockerfile +2 -1
- requirements-docker.txt +3 -1
Dockerfile
CHANGED
|
@@ -19,7 +19,8 @@ COPY requirements-docker.txt ./requirements.txt
|
|
| 19 |
|
| 20 |
# Install Python dependencies (optimized for Docker)
|
| 21 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 22 |
-
pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 23 |
|
| 24 |
# Copy the rest of the application
|
| 25 |
COPY . .
|
|
|
|
| 19 |
|
| 20 |
# Install Python dependencies (optimized for Docker)
|
| 21 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 22 |
+
pip install --no-cache-dir -r requirements.txt && \
|
| 23 |
+
python -m spacy download en_core_web_sm
|
| 24 |
|
| 25 |
# Copy the rest of the application
|
| 26 |
COPY . .
|
requirements-docker.txt
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
# Core ML and NLP Libraries
|
| 2 |
torch>=2.0.0,<2.2.0
|
| 3 |
transformers>=4.30.0,<4.37.0
|
| 4 |
-
pyabsa>=2.4.0,<3.0.0
|
| 5 |
sentencepiece>=0.1.99
|
| 6 |
sacremoses>=0.0.53
|
| 7 |
faiss-cpu>=1.7.4
|
|
|
|
|
|
|
| 8 |
|
| 9 |
# Data Processing
|
| 10 |
pandas>=1.5.0,<2.1.0
|
|
|
|
| 1 |
# Core ML and NLP Libraries
|
| 2 |
torch>=2.0.0,<2.2.0
|
| 3 |
transformers>=4.30.0,<4.37.0
|
| 4 |
+
pyabsa>=2.4.0,<3.0.0
|
| 5 |
sentencepiece>=0.1.99
|
| 6 |
sacremoses>=0.0.53
|
| 7 |
faiss-cpu>=1.7.4
|
| 8 |
+
spacy>=3.8.0
|
| 9 |
+
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl
|
| 10 |
|
| 11 |
# Data Processing
|
| 12 |
pandas>=1.5.0,<2.1.0
|