Spaces:
Sleeping
Sleeping
michaelfeil
commited on
Commit
•
7a81ab7
1
Parent(s):
62008c3
add a v1 in docker
Browse files- Dockerfile +11 -0
- README.md +6 -5
- start-infinity-emb.sh +3 -0
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
ENV PIP_ROOT_USER_ACTION=ignore
|
3 |
+
|
4 |
+
WORKDIR /app
|
5 |
+
COPY . .
|
6 |
+
|
7 |
+
RUN pip3 install --upgrade pip && \
|
8 |
+
pip install --no-cache-dir infinity-emb[all]
|
9 |
+
|
10 |
+
|
11 |
+
CMD ["sh", "start-infinity-emb.sh"]
|
README.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
-
pinned:
|
8 |
license: mit
|
9 |
---
|
|
|
10 |
|
11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: emb384
|
3 |
+
emoji: 🐠
|
4 |
+
colorFrom: green
|
5 |
+
colorTo: gray
|
6 |
sdk: docker
|
7 |
+
pinned: true
|
8 |
license: mit
|
9 |
---
|
10 |
+
Swagger UI at https://michaelfeil-infinity.hf.space/docs
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
start-infinity-emb.sh
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
export HF_HOME=/tmp/cache
|
2 |
+
export TRANSFORMERS_CACHE=/tmp/cache
|
3 |
+
infinity_emb --model-name-or-path michaelfeil/bge-small-en-v1.5 --port 7860
|