CoolFace
Apppublic

uxoxo/eb2ab

sourceHugging Faceapache-2.0updated 11mo agoView on Hugging Face
0likes
docker-compose.yml41 linesDownload Raw Back to root
1x-gpu-enabled: &gpu-enabled2  devices:3    - driver: nvidia4      count: all5      capabilities:6        - gpu # Enables GPU access for the container.7 8x-gpu-disabled: &gpu-disabled9  devices: [] # Disables GPU access (default for systems without an NVIDIA GPU).10 11services:12  ebook2audiobook:13    build:14      context: .15      args:16        #TORCH_VERSION: cuda118 # Available tags: [cuda121, cuda118, cuda128, rocm, xpu, cpu] # All CUDA version numbers should work, Ex: CUDA 11.6-> cuda11617        SKIP_XTTS_TEST: "true" # (Saves space by not baking xtts model into docker image)18    # To update ebook2audiobook to the latest you may have to rebuild  19    entrypoint: ["python", "app.py", "--script_mode", "full_docker"]20    command: [] # <- Extra ebook2audiobook parameters can be added here21    tty: true22    stdin_open: true23    ports:24      - 7860:7860 # Maps container's port 7860 to the host's port 7860.25    deploy:26      resources:27        reservations:28          <<: *gpu-disabled # Use *gpu-enabled if you have an NVIDIA GPU.29        limits: {} # Keeps limits as an empty mapping to avoid errors. Uncomment and configure below.30    volumes:31      - ./:/app  # Maps the local directory to the container.32 33# Common Issues: ----34# --> `python: can't open file '/home/user/app/app.py': [Errno 2] No such file or directory`35# Removed all post arguments as CMD was replaced with ENTRYPOINT in the Dockerfile  36# Example correction:  37# Before: command: ["python", "app.py", "--script_mode", "full_docker"] or -> `docker run athomasson2/ebook2audiobook python app.py --script_mode full_docker`38# After: nothing needed  or just -> `docker run athomasson2/ebook2audiobook`39# Extra arguments after app.py can still be added to the -> command: [] 40# Example adding extra arguments -> command: ["--share"] or -> command: ["--help"]41