Skip to content

Commit 3123abc

Browse files
authored
box: Fix path to params file in ai-runner (#3812)
1 parent 1b0e740 commit 3123abc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

box/build-runner.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ else
2222
INFERPY_INITIAL_PARAMS=""
2323
if [[ "$PIPELINE" =~ ^streamdiffusion- ]]; then
2424
BASE_PIPELINE="streamdiffusion"
25-
FILE_NAME="${PIPELINE//-/_}"
26-
JSON_FILE=./app/live/pipelines/${FILE_NAME}_default_params.json
25+
FILE_NAME=$(echo "${PIPELINE#streamdiffusion-}" | tr '-' '_')
26+
JSON_FILE=./app/live/pipelines/streamdiffusion/${FILE_NAME}_default_params.json
2727
INFERPY_INITIAL_PARAMS=$(tr -d '\n' < "$JSON_FILE")
2828
fi
2929
docker build -t livepeer/ai-runner:live-base-${BASE_PIPELINE} -f docker/Dockerfile.live-base-${BASE_PIPELINE} .

0 commit comments

Comments
 (0)