From e6b8d83803e6f6067363989d5985e82c9030ccd7 Mon Sep 17 00:00:00 2001 From: Phil Winder Date: Tue, 3 Dec 2024 16:28:09 +0000 Subject: [PATCH] fix(diffusers): add --no-dev because it shouldn't install dev dependencies --- api/pkg/runner/diffusers_model_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/pkg/runner/diffusers_model_instance.go b/api/pkg/runner/diffusers_model_instance.go index 58afe818..f8273c53 100644 --- a/api/pkg/runner/diffusers_model_instance.go +++ b/api/pkg/runner/diffusers_model_instance.go @@ -284,7 +284,7 @@ func (i *DiffusersModelInstance) Start(ctx context.Context) error { if i.filter.Mode == types.SessionModeInference { cmd = exec.CommandContext( ctx, - "uv", "run", + "uv", "run", "--no-dev", // Don't install dev dependencies "uvicorn", "main:app", "--host", "0.0.0.0", "--port", strconv.Itoa(i.port),