diff --git a/custom_whisper/Dockerfile b/custom_whisper/Dockerfile index 73845a5..d3adf91 100644 --- a/custom_whisper/Dockerfile +++ b/custom_whisper/Dockerfile @@ -50,6 +50,8 @@ WORKDIR /usr/local/lib/python3.11/dist-packages/wyoming_faster_whisper/ COPY replacables/download.py ./ COPY replacables/__main__.py ./ COPY replacables/handler.py ./ +COPY replacables/VERSION ./ +COPY replacables/_init__.py ./ LABEL org.opencontainers.image.source https://github.com/cociweb/custom_whisper diff --git a/custom_whisper/replacables/VERSION b/custom_whisper/replacables/VERSION new file mode 100644 index 0000000..1cc5f65 --- /dev/null +++ b/custom_whisper/replacables/VERSION @@ -0,0 +1 @@ +1.1.0 \ No newline at end of file diff --git a/custom_whisper/replacables/__init__.py b/custom_whisper/replacables/__init__.py new file mode 100644 index 0000000..bd012bd --- /dev/null +++ b/custom_whisper/replacables/__init__.py @@ -0,0 +1,9 @@ +"""Wyoming server for faster-whisper.""" +from pathlib import Path + +_DIR = Path(__file__).parent +_VERSION_PATH = _DIR / "VERSION" + +__version__ = _VERSION_PATH.read_text(encoding="utf-8").strip() + +__all__ = ["__version__"] \ No newline at end of file diff --git a/standalone_whisper/common/replacables/VERSION b/standalone_whisper/common/replacables/VERSION new file mode 100644 index 0000000..1cc5f65 --- /dev/null +++ b/standalone_whisper/common/replacables/VERSION @@ -0,0 +1 @@ +1.1.0 \ No newline at end of file diff --git a/standalone_whisper/common/replacables/__init__.py b/standalone_whisper/common/replacables/__init__.py new file mode 100644 index 0000000..bd012bd --- /dev/null +++ b/standalone_whisper/common/replacables/__init__.py @@ -0,0 +1,9 @@ +"""Wyoming server for faster-whisper.""" +from pathlib import Path + +_DIR = Path(__file__).parent +_VERSION_PATH = _DIR / "VERSION" + +__version__ = _VERSION_PATH.read_text(encoding="utf-8").strip() + +__all__ = ["__version__"] \ No newline at end of file