Skip to content

Commit

Permalink
Merge pull request #134 from weni-ai/staging
Browse files Browse the repository at this point in the history
ChatGPT Inference in replacement of Torchserve for QA Model
  • Loading branch information
johncordeiro authored Sep 4, 2023
2 parents 928ad04 + eae9cfe commit 183399d
Show file tree
Hide file tree
Showing 5 changed files with 756 additions and 487 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6-slim
FROM python:3.10-slim

ENV WORKDIR /home/app
ENV BOTHUB_NLP_API_PORT 2657
Expand All @@ -9,8 +9,8 @@ RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y gcc bzip2 git curl nginx libpq-dev gettext \
libgdal-dev python3-cffi python3-gdal vim

RUN pip install -U pip==20.2.2 setuptools==49.6.0
RUN pip install pipenv==2018.11.26
RUN pip install -U pip==21.3.1 setuptools
RUN pip install pipenv==2023.6.2
RUN pip install gunicorn==19.9.0
RUN apt-get install -y libjpeg-dev libgpgme-dev linux-libc-dev musl-dev libffi-dev libssl-dev
ENV LIBRARY_PATH=/lib:/usr/lib
Expand Down
7 changes: 4 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ lint = "flake8"

[packages]
uvicorn = "~=0.11.8"
bothub_backend = {ref = "1.0.23",git = "https://github.com/Ilhasoft/bothub-backend"}
bothub_nlp_celery = {ref = "0.1.38",git = "https://github.com/Ilhasoft/bothub-nlp-celery"}
requests = "~=2.20.1"
google-api-python-client = "~=1.9.1"
fastapi = "~=0.65.2"
Expand All @@ -18,6 +16,9 @@ django-environ = "~=0.4.5"
email-validator = "~=1.1.1"
redis = "~=3.5.3"
python-multipart = "~=0.0.5"
bothub-backend = {editable = true, git = "https://github.com/weni-ai/bothub-backend"}
bothub-nlp-celery = {editable = true, ref = "feature/remove-spacy", git = "https://github.com/weni-ai/bothub-nlp-celery.git"}
openai = "*"

[dev-packages]
gunicorn = "~=19.9.0"
Expand All @@ -26,4 +27,4 @@ black = "==19.3b0"
coverage = "*"

[requires]
python_version = "3.6"
python_version = "3.10"
Loading

0 comments on commit 183399d

Please sign in to comment.