Skip to content

Commit

Permalink
add kokoro ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetrucciani committed Jan 14, 2025
1 parent 8c42672 commit 974c22a
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions hosts/titan/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,32 @@ in

virtualisation = {
docker.enable = true;
podman.enable = true;
oci-containers.containers = {
kokoro = {
image = "ghcr.io/remsky/kokoro-fastapi-gpu:v0.1.0";
ports = [ "8880:8880" ];
volumes = [ "/var/lib/kokoro/voices:/app/api/src/voices" ];
devices = [ "nvidia.com/gpu=0" ];
environment = {
PYTHONPATH = "/app:/app/models";
oci-containers.containers =
let
kokoro_version = "v0.1.0";
kokoro_api_port = 8880;
kokoro_ui_port = 7860;
in
{
kokoro = {
image = "ghcr.io/remsky/kokoro-fastapi-gpu:${kokoro_version}";
ports = [ "${toString kokoro_api_port}:8880" ];
volumes = [ "/var/lib/kokoro/voices:/app/api/src/voices" ];
devices = [ "nvidia.com/gpu=0" ];
environment = {
PYTHONPATH = "/app:/app/models";
};
};
kokoro-ui = {
image = "ghcr.io/remsky/kokoro-fastapi-ui:${kokoro_version}";
ports = [ "${toString kokoro_ui_port}:7860" ];
volumes = [ "/var/lib/kokoro/data:/app/ui/data" ];
environment = {
PYTHONUNBUFFERED = "1";
DISABLE_LOCAL_SAVING = "false";
};
};
};
};
};
hardware = {
nvidia = {
Expand Down

0 comments on commit 974c22a

Please sign in to comment.