Spaces:
Running
Running
Commit ·
4060b4d
1
Parent(s): 53067d9
ok
Browse files- Dockerfile +2 -13
- README.md +1 -1
Dockerfile
CHANGED
|
@@ -24,19 +24,8 @@ RUN pip install --no-cache-dir "youtube-transcript-api>=1.2.4"
|
|
| 24 |
|
| 25 |
COPY --chown=appuser:appuser . .
|
| 26 |
|
| 27 |
-
#
|
| 28 |
-
RUN mkdir -p /app/models && python3 -c "
|
| 29 |
-
from huggingface_hub import snapshot_download; \
|
| 30 |
-
snapshot_download(repo_id='ibm-granite/granite-embedding-small-english-r2', local_dir='/app/models/bge-384'); \
|
| 31 |
-
snapshot_download(repo_id='nomic-ai/nomic-embed-text-v1.5', local_dir='/app/models/bge-768'); \
|
| 32 |
-
snapshot_download(repo_id='lightonai/modernbert-embed-large', local_dir='/app/models/bge-1024'); \
|
| 33 |
-
snapshot_download(repo_id='nomic-ai/nomic-embed-vision-v1.5', local_dir='/app/models/vision'); \
|
| 34 |
-
import json, os; \
|
| 35 |
-
cfg='/app/models/vision/config.json'; \
|
| 36 |
-
d=json.load(open(cfg)); \
|
| 37 |
-
d['n_inner']=int(d['n_inner']) if isinstance(d.get('n_inner'), float) else d['n_inner']; \
|
| 38 |
-
json.dump(d, open(cfg, 'w'), indent=2)" && \
|
| 39 |
-
chown -R appuser:appuser /app/models
|
| 40 |
|
| 41 |
RUN mkdir -p /app/logs && \
|
| 42 |
chown -R appuser:appuser /app/logs
|
|
|
|
| 24 |
|
| 25 |
COPY --chown=appuser:appuser . .
|
| 26 |
|
| 27 |
+
# FIXED: Removed all line breaks and spaces inside the python3 -c execution string to prevent IndentationError
|
| 28 |
+
RUN mkdir -p /app/models && python3 -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='ibm-granite/granite-embedding-small-english-r2', local_dir='/app/models/bge-384'); snapshot_download(repo_id='nomic-ai/nomic-embed-text-v1.5', local_dir='/app/models/bge-768'); snapshot_download(repo_id='lightonai/modernbert-embed-large', local_dir='/app/models/bge-1024'); snapshot_download(repo_id='nomic-ai/nomic-embed-vision-v1.5', local_dir='/app/models/vision'); import json, os; cfg='/app/models/vision/config.json'; d=json.load(open(cfg)); d['n_inner']=int(d['n_inner']) if isinstance(d.get('n_inner'), float) else d['n_inner']; json.dump(d, open(cfg, 'w'), indent=2)" && chown -R appuser:appuser /app/models
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
RUN mkdir -p /app/logs && \
|
| 31 |
chown -R appuser:appuser /app/logs
|
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title: All API Collection
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: purple
|
|
|
|
| 1 |
---
|
| 2 |
+
title: All API Collection v2.1.0
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: purple
|