nsthorat commited on
Commit
393e4b8
1 Parent(s): 573a0c2
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +0 -21
  2. Dockerfile +18 -8
  3. data/.cache/lilac/concept/lilac/legal-termination/cohere.pkl +0 -0
  4. data/.cache/lilac/concept/lilac/legal-termination/gte-base.pkl +0 -0
  5. data/.cache/lilac/concept/lilac/legal-termination/gte-small.pkl +0 -0
  6. data/.cache/lilac/concept/lilac/legal-termination/openai.pkl +0 -0
  7. data/.cache/lilac/concept/lilac/legal-termination/palm.pkl +0 -0
  8. data/.cache/lilac/concept/lilac/legal-termination/sbert.pkl +0 -0
  9. data/.cache/lilac/concept/lilac/negative-sentiment/cohere.pkl +0 -3
  10. data/.cache/lilac/concept/lilac/negative-sentiment/gte-base.pkl +0 -0
  11. data/.cache/lilac/concept/lilac/negative-sentiment/gte-small.pkl +0 -0
  12. data/.cache/lilac/concept/lilac/negative-sentiment/openai.pkl +0 -0
  13. data/.cache/lilac/concept/lilac/negative-sentiment/palm.pkl +0 -0
  14. data/.cache/lilac/concept/lilac/negative-sentiment/sbert.pkl +0 -0
  15. data/.cache/lilac/concept/lilac/non-english/cohere.pkl +0 -3
  16. data/.cache/lilac/concept/lilac/non-english/gte-base.pkl +0 -0
  17. data/.cache/lilac/concept/lilac/non-english/gte-small.pkl +0 -0
  18. data/.cache/lilac/concept/lilac/non-english/openai.pkl +0 -3
  19. data/.cache/lilac/concept/lilac/non-english/palm.pkl +0 -0
  20. data/.cache/lilac/concept/lilac/non-english/sbert.pkl +0 -0
  21. data/.cache/lilac/concept/lilac/positive-sentiment/cohere.pkl +0 -3
  22. data/.cache/lilac/concept/lilac/positive-sentiment/gte-base.pkl +0 -0
  23. data/.cache/lilac/concept/lilac/positive-sentiment/gte-small.pkl +0 -0
  24. data/.cache/lilac/concept/lilac/positive-sentiment/openai.pkl +0 -0
  25. data/.cache/lilac/concept/lilac/positive-sentiment/palm.pkl +0 -0
  26. data/.cache/lilac/concept/lilac/positive-sentiment/sbert.pkl +0 -0
  27. data/.cache/lilac/concept/lilac/profanity/cohere.pkl +0 -3
  28. data/.cache/lilac/concept/lilac/profanity/gte-base.pkl +0 -3
  29. data/.cache/lilac/concept/lilac/profanity/gte-small.pkl +0 -3
  30. data/.cache/lilac/concept/lilac/profanity/openai.pkl +0 -3
  31. data/.cache/lilac/concept/lilac/profanity/palm.pkl +0 -3
  32. data/.cache/lilac/concept/lilac/profanity/sbert.pkl +0 -3
  33. data/.cache/lilac/concept/lilac/question/cohere.pkl +0 -3
  34. data/.cache/lilac/concept/lilac/question/gte-base.pkl +0 -3
  35. data/.cache/lilac/concept/lilac/question/gte-small.pkl +0 -0
  36. data/.cache/lilac/concept/lilac/question/openai.pkl +0 -3
  37. data/.cache/lilac/concept/lilac/question/palm.pkl +0 -3
  38. data/.cache/lilac/concept/lilac/question/sbert.pkl +0 -0
  39. data/.cache/lilac/concept/lilac/source-code/cohere.pkl +0 -3
  40. data/.cache/lilac/concept/lilac/source-code/gte-base.pkl +0 -0
  41. data/.cache/lilac/concept/lilac/source-code/gte-small.pkl +0 -0
  42. data/.cache/lilac/concept/lilac/source-code/openai.pkl +0 -0
  43. data/.cache/lilac/concept/lilac/source-code/palm.pkl +0 -0
  44. data/.cache/lilac/concept/lilac/source-code/sbert.pkl +0 -0
  45. data/.cache/lilac/concept/lilac/toxicity/cohere.pkl +0 -3
  46. data/.cache/lilac/concept/lilac/toxicity/gte-base.pkl +0 -3
  47. data/.cache/lilac/concept/lilac/toxicity/gte-small.pkl +0 -3
  48. data/.cache/lilac/concept/lilac/toxicity/openai.pkl +0 -3
  49. data/.cache/lilac/concept/lilac/toxicity/palm.pkl +0 -3
  50. data/.cache/lilac/concept/lilac/toxicity/sbert.pkl +0 -3
.gitattributes DELETED
@@ -1,21 +0,0 @@
1
- data/.cache/lilac/concept/lilac/negative-sentiment/cohere.pkl filter=lfs diff=lfs merge=lfs -text
2
- data/.cache/lilac/concept/lilac/non-english/cohere.pkl filter=lfs diff=lfs merge=lfs -text
3
- data/.cache/lilac/concept/lilac/non-english/openai.pkl filter=lfs diff=lfs merge=lfs -text
4
- data/.cache/lilac/concept/lilac/positive-sentiment/cohere.pkl filter=lfs diff=lfs merge=lfs -text
5
- data/.cache/lilac/concept/lilac/profanity/cohere.pkl filter=lfs diff=lfs merge=lfs -text
6
- data/.cache/lilac/concept/lilac/profanity/gte-base.pkl filter=lfs diff=lfs merge=lfs -text
7
- data/.cache/lilac/concept/lilac/profanity/gte-small.pkl filter=lfs diff=lfs merge=lfs -text
8
- data/.cache/lilac/concept/lilac/profanity/openai.pkl filter=lfs diff=lfs merge=lfs -text
9
- data/.cache/lilac/concept/lilac/profanity/palm.pkl filter=lfs diff=lfs merge=lfs -text
10
- data/.cache/lilac/concept/lilac/profanity/sbert.pkl filter=lfs diff=lfs merge=lfs -text
11
- data/.cache/lilac/concept/lilac/question/cohere.pkl filter=lfs diff=lfs merge=lfs -text
12
- data/.cache/lilac/concept/lilac/question/gte-base.pkl filter=lfs diff=lfs merge=lfs -text
13
- data/.cache/lilac/concept/lilac/question/openai.pkl filter=lfs diff=lfs merge=lfs -text
14
- data/.cache/lilac/concept/lilac/question/palm.pkl filter=lfs diff=lfs merge=lfs -text
15
- data/.cache/lilac/concept/lilac/source-code/cohere.pkl filter=lfs diff=lfs merge=lfs -text
16
- data/.cache/lilac/concept/lilac/toxicity/cohere.pkl filter=lfs diff=lfs merge=lfs -text
17
- data/.cache/lilac/concept/lilac/toxicity/gte-base.pkl filter=lfs diff=lfs merge=lfs -text
18
- data/.cache/lilac/concept/lilac/toxicity/gte-small.pkl filter=lfs diff=lfs merge=lfs -text
19
- data/.cache/lilac/concept/lilac/toxicity/openai.pkl filter=lfs diff=lfs merge=lfs -text
20
- data/.cache/lilac/concept/lilac/toxicity/palm.pkl filter=lfs diff=lfs merge=lfs -text
21
- data/.cache/lilac/concept/lilac/toxicity/sbert.pkl filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Dockerfile CHANGED
@@ -4,23 +4,33 @@ FROM python:3.9-bullseye
4
  # Allow statements and log messages to immediately appear in the Knative logs
5
  ENV PYTHONUNBUFFERED True
6
 
 
 
 
 
 
 
7
  # Set the working directory in the container.
8
- WORKDIR /server
9
 
10
  # Install the dependencies. This requires exporting requirements.txt from poetry first, which
11
  # happens from ./build_docker.sh.
12
- COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- COPY .env .
16
- COPY .env.demo .
17
  # Copy the README so we can read the datasets from the HuggingFace config.
18
- COPY README.md .
19
- COPY LICENSE .
20
 
21
  # Copy python files.
22
- COPY /lilac ./lilac/
 
 
23
 
24
- COPY docker_start.sh docker_start.py ./
 
 
25
 
26
  CMD ["bash", "docker_start.sh"]
 
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
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
+
13
  # Set the working directory in the container.
14
+ WORKDIR $HOME/app
15
 
16
  # Install the dependencies. This requires exporting requirements.txt from poetry first, which
17
  # happens from ./build_docker.sh.
18
+ COPY --chown=user requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
+ COPY --chown=user .env .
22
+ COPY --chown=user .env.demo .
23
  # Copy the README so we can read the datasets from the HuggingFace config.
24
+ COPY --chown=user README.md .
25
+ COPY --chown=user LICENSE .
26
 
27
  # Copy python files.
28
+ COPY --chown=user /lilac ./lilac/
29
+
30
+ COPY --chown=user docker_start.sh docker_start.py ./
31
 
32
+ # Make a local data directory for non-persistent storage demos.
33
+ RUN mkdir -p ./data
34
+ RUN chown -R user ./data
35
 
36
  CMD ["bash", "docker_start.sh"]
data/.cache/lilac/concept/lilac/legal-termination/cohere.pkl DELETED
Binary file (610 kB)
 
data/.cache/lilac/concept/lilac/legal-termination/gte-base.pkl DELETED
Binary file (117 kB)
 
data/.cache/lilac/concept/lilac/legal-termination/gte-small.pkl DELETED
Binary file (60.6 kB)
 
data/.cache/lilac/concept/lilac/legal-termination/openai.pkl DELETED
Binary file (231 kB)
 
data/.cache/lilac/concept/lilac/legal-termination/palm.pkl DELETED
Binary file (117 kB)
 
data/.cache/lilac/concept/lilac/legal-termination/sbert.pkl DELETED
Binary file (60.6 kB)
 
data/.cache/lilac/concept/lilac/negative-sentiment/cohere.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:304385eb4cf66e780a49026dd1d45f0db5369a67b7562ec46ff10b8be36c411e
3
- size 2088021
 
 
 
 
data/.cache/lilac/concept/lilac/negative-sentiment/gte-base.pkl DELETED
Binary file (397 kB)
 
data/.cache/lilac/concept/lilac/negative-sentiment/gte-small.pkl DELETED
Binary file (202 kB)
 
data/.cache/lilac/concept/lilac/negative-sentiment/openai.pkl DELETED
Binary file (787 kB)
 
data/.cache/lilac/concept/lilac/negative-sentiment/palm.pkl DELETED
Binary file (397 kB)
 
data/.cache/lilac/concept/lilac/negative-sentiment/sbert.pkl DELETED
Binary file (202 kB)
 
data/.cache/lilac/concept/lilac/non-english/cohere.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8073ad4261c03aac8350bcee76a40669df0a529b89b605e4a991189c7ad549ed
3
- size 3374534
 
 
 
 
data/.cache/lilac/concept/lilac/non-english/gte-base.pkl DELETED
Binary file (645 kB)
 
data/.cache/lilac/concept/lilac/non-english/gte-small.pkl DELETED
Binary file (330 kB)
 
data/.cache/lilac/concept/lilac/non-english/openai.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3c924d11c7e0b61a76dfcafd4bd1cbf4f80afab97a5e537c0fb7ebb18db25a5d
3
- size 1275037
 
 
 
 
data/.cache/lilac/concept/lilac/non-english/palm.pkl DELETED
Binary file (645 kB)
 
data/.cache/lilac/concept/lilac/non-english/sbert.pkl DELETED
Binary file (330 kB)
 
data/.cache/lilac/concept/lilac/positive-sentiment/cohere.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:fc23e270e1824e258a51ea5419de53e74b6cc23fa31ff586b6c2f0f0f7549b91
3
- size 1857652
 
 
 
 
data/.cache/lilac/concept/lilac/positive-sentiment/gte-base.pkl DELETED
Binary file (353 kB)
 
data/.cache/lilac/concept/lilac/positive-sentiment/gte-small.pkl DELETED
Binary file (180 kB)
 
data/.cache/lilac/concept/lilac/positive-sentiment/openai.pkl DELETED
Binary file (700 kB)
 
data/.cache/lilac/concept/lilac/positive-sentiment/palm.pkl DELETED
Binary file (353 kB)
 
data/.cache/lilac/concept/lilac/positive-sentiment/sbert.pkl DELETED
Binary file (180 kB)
 
data/.cache/lilac/concept/lilac/profanity/cohere.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f6c694a83f498be11182ea462dba84e93970c502f687504f5b684a47f175c411
3
- size 17413997
 
 
 
 
data/.cache/lilac/concept/lilac/profanity/gte-base.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3287d4d06a78e0757f0b8586651e24fc7ac8f9d742a0091b24dd5bfc3b4c441f
3
- size 3301326
 
 
 
 
data/.cache/lilac/concept/lilac/profanity/gte-small.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6f25837df92c799823a7ea284d3046d10fd2d146e97610d739fd088a44172e57
3
- size 1672960
 
 
 
 
data/.cache/lilac/concept/lilac/profanity/openai.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6c199a5348b201c91db1926c12c47ec370b69badde06981d18dead800210acc2
3
- size 6558076
 
 
 
 
data/.cache/lilac/concept/lilac/profanity/palm.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:17cbb10cf538ab7e823d4db1fddf81977a155e3270a986b182370297e5a48380
3
- size 3301322
 
 
 
 
data/.cache/lilac/concept/lilac/profanity/sbert.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:132800020bbe32723942388c651eac45ae9da9aa98e7bfdd46b3f5820e02a339
3
- size 1672951
 
 
 
 
data/.cache/lilac/concept/lilac/question/cohere.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f2ce2b4f9bf3dba7d6afa146aad9b443d35987b230366b668fbf15325b27fcf8
3
- size 6254200
 
 
 
 
data/.cache/lilac/concept/lilac/question/gte-base.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:fd6e9243c20ec84229419814178411b7f6f80a6d8e2f9e244fcc4f752d6ec5f0
3
- size 1194951
 
 
 
 
data/.cache/lilac/concept/lilac/question/gte-small.pkl DELETED
Binary file (611 kB)
 
data/.cache/lilac/concept/lilac/question/openai.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b998b1370a2982689e6c5e0f099659f103130a52090f0f9f2b234abdc3c8d2b0
3
- size 2362458
 
 
 
 
data/.cache/lilac/concept/lilac/question/palm.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:98e077a03707541da691311fd28d9bed00ec9fb2a22a915adde2bc436f6362e6
3
- size 1194947
 
 
 
 
data/.cache/lilac/concept/lilac/question/sbert.pkl DELETED
Binary file (611 kB)
 
data/.cache/lilac/concept/lilac/source-code/cohere.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ad4234a60f17ac8a068c3b407af1b63fd460800c9fd6c014da70d8eb3b0c0939
3
- size 1284715
 
 
 
 
data/.cache/lilac/concept/lilac/source-code/gte-base.pkl DELETED
Binary file (246 kB)
 
data/.cache/lilac/concept/lilac/source-code/gte-small.pkl DELETED
Binary file (126 kB)
 
data/.cache/lilac/concept/lilac/source-code/openai.pkl DELETED
Binary file (486 kB)
 
data/.cache/lilac/concept/lilac/source-code/palm.pkl DELETED
Binary file (246 kB)
 
data/.cache/lilac/concept/lilac/source-code/sbert.pkl DELETED
Binary file (126 kB)
 
data/.cache/lilac/concept/lilac/toxicity/cohere.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cc3d3f95d84b64657ec4697ce899aee940d62725e0fb88c9f8b38f03298d89b3
3
- size 19602537
 
 
 
 
data/.cache/lilac/concept/lilac/toxicity/gte-base.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0e9363d2faacb10fe0528f06df2237a44f9b1686f4100d3cca2cdb1a621a90c2
3
- size 3719127
 
 
 
 
data/.cache/lilac/concept/lilac/toxicity/gte-small.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b094a716fcbda3cd5b686457bf2510c0a17cabddac21d88d8c97f6a6908266ec
3
- size 1886446
 
 
 
 
data/.cache/lilac/concept/lilac/toxicity/openai.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:08ee50c3a7679c15e442d12996ddac07bd9ffb8de30f8a607f6b4dd72e7f0343
3
- size 7384512
 
 
 
 
data/.cache/lilac/concept/lilac/toxicity/palm.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e9d54189781c5a3e56f8640a7ed3516c82a411b09798e7dca84c6ba0f7efe48d
3
- size 3719128
 
 
 
 
data/.cache/lilac/concept/lilac/toxicity/sbert.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:654c96a6ef52b60a0f81d099c8bf4cda9957dde8d9aaea43f21cddc6c54c1ab5
3
- size 1886440