Severian commited on
Commit
96427a6
1 Parent(s): fbd2dcf

feat: optimize Dockerfile for HuggingFace Spaces deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -1
Dockerfile CHANGED
@@ -100,7 +100,12 @@ RUN pip install --no-cache-dir \
100
  python-jose[cryptography] \
101
  passlib \
102
  python-multipart \
103
- gmpy2 && \
 
 
 
 
 
104
  poetry config virtualenvs.create false && \
105
  poetry install --no-dev --no-interaction --no-ansi
106
 
@@ -152,6 +157,11 @@ RUN apt-get install -y --no-install-recommends \
152
  passlib \
153
  python-multipart \
154
  gmpy2 \
 
 
 
 
 
155
  nltk && \
156
  python -m nltk.downloader punkt averaged_perceptron_tagger
157
 
 
100
  python-jose[cryptography] \
101
  passlib \
102
  python-multipart \
103
+ gmpy2 \
104
+ transformers \
105
+ torch \
106
+ tensorflow \
107
+ sentencepiece \
108
+ tokenizers && \
109
  poetry config virtualenvs.create false && \
110
  poetry install --no-dev --no-interaction --no-ansi
111
 
 
157
  passlib \
158
  python-multipart \
159
  gmpy2 \
160
+ transformers \
161
+ torch \
162
+ tensorflow \
163
+ sentencepiece \
164
+ tokenizers \
165
  nltk && \
166
  python -m nltk.downloader punkt averaged_perceptron_tagger
167