michaelfeil commited on
Commit
7a81ab7
โ€ข
1 Parent(s): 62008c3

add a v1 in docker

Browse files
Files changed (3) hide show
  1. Dockerfile +11 -0
  2. README.md +6 -5
  3. 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: Infinity
3
- emoji: ๐Ÿ‘
4
- colorFrom: gray
5
- colorTo: indigo
6
  sdk: docker
7
- pinned: false
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