feat: python 3.11

This commit is contained in:
Felix Spöttel
2023-06-28 11:25:01 +02:00
parent 136852afda
commit da751865e0
5 changed files with 8 additions and 7 deletions

View File

@@ -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]

View File

@@ -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.

View File

@@ -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

View File

@@ -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

View File

@@ -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