mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-13 05:58:35 +03:00
feat: use official whisper pypy package
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user