feat: use official whisper pypy package

This commit is contained in:
Felix Spöttel
2023-01-18 12:35:19 +01:00
parent 7b6b453b45
commit 3f734468e1
3 changed files with 13 additions and 8 deletions

View File

@@ -1,9 +1,9 @@
FROM python:3.11 AS compile-image
FROM python:3.10 AS compile-image
COPY pyproject.toml .
RUN pip install --user .[test]
RUN pip install --user .[test,web]
FROM python:3.11 AS build-image
FROM python:3.10 AS build-image
WORKDIR /code

View File

@@ -33,6 +33,8 @@ services:
- 6379:6379
networks:
- app
volumes:
- redis-data:/data
app:
container_name: whisper_api_app
@@ -79,6 +81,7 @@ services:
volumes:
postgres-data:
redis-data:
networks:
app:

View File

@@ -4,19 +4,21 @@ description = ""
version = "0.0.1"
dependencies=[
"alembic ==1.9.0",
"celery[redis] ==5.2.7",
"fastapi ==0.88.0",
"psycopg2 ==2.9.5",
"python-dotenv ==0.21.0",
"sqlalchemy[mypy] == 1.4.45",
"uvicorn[standard] ==0.20.0"
"python-dotenv ==0.21.0",
]
[project.optional-dependencies]
web=[
"alembic ==1.9.0",
"fastapi ==0.88.0",
"uvicorn[standard] ==0.20.0"
]
worker=[
"whisper @ git+https://github.com/openai/whisper.git"
"whisper-openai ==1.0.0"
]
dev = [