mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-07 19:18:35 +03:00
feat: python 3.11
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
cache-dependency-path: '**/pyproject.toml'
|
||||
- run: pip install -e .[web,tooling]
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
cache-dependency-path: '**/pyproject.toml'
|
||||
- run: pip install -e .[web,tooling]
|
||||
|
||||
@@ -33,6 +33,7 @@ This project is intended to be run via [docker compose](https://docs.docker.com/
|
||||
### 2. Configure service
|
||||
|
||||
2. Create an `.env` file from `.env.example` and configure it:
|
||||
|
||||
- `API_SECRET`: the API key used to authenticate against the API.
|
||||
- `WHISPER_MODEL`: the whisper model size you want to use.
|
||||
- `TRAEFIK_DOMAIN`: the domain you want to access the service from. Its A records need to point to the host IP.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM python:3.10-slim as python-build
|
||||
FROM python:3.11-slim as python-build
|
||||
|
||||
WORKDIR /etc/whisperbox-transcribe
|
||||
|
||||
@@ -8,7 +8,7 @@ RUN python -m venv /opt/venv && \
|
||||
/opt/venv/bin/pip install -U pip wheel && \
|
||||
/opt/venv/bin/pip install -U .[web]
|
||||
|
||||
FROM python:3.10-slim as python-deploy
|
||||
FROM python:3.11-slim as python-deploy
|
||||
|
||||
WORKDIR /etc/whisperbox-transcribe
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM python:3.10-slim AS python-build
|
||||
FROM python:3.11-slim AS python-build
|
||||
|
||||
WORKDIR /etc/whisperbox-transcribe
|
||||
|
||||
@@ -9,7 +9,7 @@ RUN python -m venv /opt/venv && \
|
||||
/opt/venv/bin/pip install -U pip wheel && \
|
||||
/opt/venv/bin/pip install -U .[worker]
|
||||
|
||||
FROM python:3.10-slim as python-deploy
|
||||
FROM python:3.11-slim as python-deploy
|
||||
|
||||
ARG WHISPER_MODEL
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# TODO: clean up
|
||||
FROM nvidia/cuda:11.8.0-base-ubuntu22.04 AS python-deploy
|
||||
|
||||
ENV PYTHON_VERSION=3.10
|
||||
ENV PYTHON_VERSION=3.11
|
||||
|
||||
ARG WHISPER_MODEL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user