diff --git a/README.md b/README.md index 865a3c9..bc3c41a 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ pip install abogen abogen ``` -Then open http://localhost:8000 and drag in your documents. Jobs run in the background worker and the browser updates automatically. +Then open http://localhost:8808 and drag in your documents. Jobs run in the background worker and the browser updates automatically. > **Tip:** Keep the terminal open while the server is running. Use `Ctrl+C` to stop it. @@ -34,19 +34,19 @@ A lightweight Dockerfile lives in `abogen/Dockerfile`. docker build -t abogen . mkdir -p ~/abogen-data/uploads ~/abogen-data/outputs docker run --rm \ - -p 8000:8000 \ + -p 8808:8808 \ -v ~/abogen-data:/data \ --name abogen \ abogen ``` -Browse to http://localhost:8000. Uploaded source files are stored in `/data/uploads` and rendered audio/subtitles appear in `/data/outputs`. +Browse to http://localhost:8808. Uploaded source files are stored in `/data/uploads` and rendered audio/subtitles appear in `/data/outputs`. ### Container environment variables | Variable | Default | Purpose | |----------|---------|---------| | `ABOGEN_HOST` | `0.0.0.0` | Bind address for the Flask server | -| `ABOGEN_PORT` | `8000` | HTTP port | +| `ABOGEN_PORT` | `8808` | HTTP port | | `ABOGEN_DEBUG` | `false` | Enable Flask debug mode | | `ABOGEN_UPLOAD_ROOT` | `/data/uploads` | Directory where uploaded files are stored | | `ABOGEN_OUTPUT_ROOT` | `/data/outputs` | Directory for generated audio and subtitles | @@ -72,7 +72,7 @@ CPU-only deployment: comment out the `deploy.resources.reservations.devices` blo docker build -f abogen/Dockerfile -t abogen-gpu . docker run --rm \ --gpus all \ - -p 8000:8000 \ + -p 8808:8808 \ -v ~/abogen-data:/data \ abogen-gpu ``` diff --git a/abogen/Dockerfile b/abogen/Dockerfile index 3d0f385..e389de3 100644 --- a/abogen/Dockerfile +++ b/abogen/Dockerfile @@ -37,9 +37,9 @@ RUN pip install --upgrade pip \ && pip install --no-cache-dir . ENV ABOGEN_HOST=0.0.0.0 \ - ABOGEN_PORT=8000 + ABOGEN_PORT=8808 -EXPOSE 8000 +EXPOSE 8808 VOLUME ["/data"] diff --git a/abogen/web/app.py b/abogen/web/app.py index 8081c41..e385fb4 100644 --- a/abogen/web/app.py +++ b/abogen/web/app.py @@ -68,7 +68,7 @@ def create_app(config: Optional[dict[str, Any]] = None) -> Flask: def main() -> None: app = create_app() host = os.environ.get("ABOGEN_HOST", "0.0.0.0") - port = int(os.environ.get("ABOGEN_PORT", "8000")) + port = int(os.environ.get("ABOGEN_PORT", "8808")) debug = os.environ.get("ABOGEN_DEBUG", "false").lower() == "true" app.run(host=host, port=port, debug=debug) diff --git a/abogen/web/templates/base.html b/abogen/web/templates/base.html index c0af229..c03b9dd 100644 --- a/abogen/web/templates/base.html +++ b/abogen/web/templates/base.html @@ -4,7 +4,7 @@