indahPurnamaSarii commited on
Commit
7410938
·
1 Parent(s): 0d54dfc

first commit

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. requirements.txt +0 -1
Dockerfile CHANGED
@@ -5,4 +5,4 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
5
  RUN python download_model.py
6
  RUN mkdir -p /app/.cache
7
  ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache
8
- CMD ["waitress-serve", "--host=0.0.0.0", "--port=7860", "app:app"]
 
5
  RUN python download_model.py
6
  RUN mkdir -p /app/.cache
7
  ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache
8
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "app:app"]
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
  gunicorn
2
- waitress
3
  protobuf==3.20.*
4
  langchain-huggingface==0.0.3
5
  langchain
 
1
  gunicorn
 
2
  protobuf==3.20.*
3
  langchain-huggingface==0.0.3
4
  langchain