Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -67,10 +67,9 @@ RUN pip install "tokenizers==0.15.2"
|
|
| 67 |
# ✅ Installer Chonkie v1.0.10 avec patch automatique du paramètre chunk_hierarchy
|
| 68 |
RUN git clone https://github.com/chonkie-inc/chonkie.git /tmp/chonkie && \
|
| 69 |
cd /tmp/chonkie && \
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
pip install .
|
| 74 |
|
| 75 |
|
| 76 |
RUN pip uninstall -y sentence-transformers && \
|
|
|
|
| 67 |
# ✅ Installer Chonkie v1.0.10 avec patch automatique du paramètre chunk_hierarchy
|
| 68 |
RUN git clone https://github.com/chonkie-inc/chonkie.git /tmp/chonkie && \
|
| 69 |
cd /tmp/chonkie && \
|
| 70 |
+
sed -i 's/__init__(/__init__(chunk_hierarchy=None, /' /tmp/chonkie/chonkie/recursive.py && \
|
| 71 |
+
echo " self.chunk_hierarchy = chunk_hierarchy or [2048, 512, 128]" >> /tmp/chonkie/chonkie/recursive.py && \
|
| 72 |
+
pip install /tmp/chonkie
|
|
|
|
| 73 |
|
| 74 |
|
| 75 |
RUN pip uninstall -y sentence-transformers && \
|