nsthorat-lilac commited on
Commit
2efcf08
1 Parent(s): 96e9c2b

Push to HF space

Browse files
Files changed (2) hide show
  1. Dockerfile +6 -2
  2. data/lilac.yml +7 -2
Dockerfile CHANGED
@@ -1,9 +1,12 @@
1
- # NOTE: When we upgrade to 3.11 we can use a slimmer docker image which comes with gcc.
2
- FROM python:3.9-bullseye
3
 
4
  # Allow statements and log messages to immediately appear in the Knative logs
5
  ENV PYTHONUNBUFFERED True
6
 
 
 
 
 
7
  # See: https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
8
  RUN useradd -m -u 1000 user
9
  USER user
@@ -39,4 +42,5 @@ COPY --chown=user docker_start.sh ./
39
  RUN mkdir -p ./data
40
  RUN chown -R user ./data
41
 
 
42
  CMD ["bash", "docker_start.sh"]
 
1
+ FROM python:3.11-slim-bullseye
 
2
 
3
  # Allow statements and log messages to immediately appear in the Knative logs
4
  ENV PYTHONUNBUFFERED True
5
 
6
+ # Adds GCC and other build tools so we can compile hnswlib and other native/C++ deps.
7
+ RUN apt-get update --fix-missing && apt-get install -y --fix-missing build-essential && \
8
+ rm -rf /var/lib/apt/lists/*
9
+
10
  # See: https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
11
  RUN useradd -m -u 1000 user
12
  USER user
 
42
  RUN mkdir -p ./data
43
  RUN chown -R user ./data
44
 
45
+ EXPOSE 5432
46
  CMD ["bash", "docker_start.sh"]
data/lilac.yml CHANGED
@@ -10,8 +10,13 @@ datasets:
10
  revision: null
11
  load_from_disk: false
12
  source_name: huggingface
13
- embeddings: []
14
- signals: []
 
 
 
 
 
15
  settings: null
16
  signals: []
17
  concept_model_cache_embeddings: []
 
10
  revision: null
11
  load_from_disk: false
12
  source_name: huggingface
13
+ embeddings:
14
+ - path: hypothesis
15
+ embedding: gte-small
16
+ signals:
17
+ - path: hypothesis
18
+ signal:
19
+ signal_name: text_statistics
20
  settings: null
21
  signals: []
22
  concept_model_cache_embeddings: []