diff --git a/server/operators/stt_local/run.py b/server/operators/stt_local/run.py index e630bd8..b51ed9e 100644 --- a/server/operators/stt_local/run.py +++ b/server/operators/stt_local/run.py @@ -1,9 +1,13 @@ import argparse import json +import os import sys import time from pathlib import Path +# job env has a minimal PATH; whisper shells out to ffmpeg +os.environ["PATH"] = "/opt/homebrew/bin:/usr/local/bin:" + os.environ.get("PATH", "") + ap = argparse.ArgumentParser() ap.add_argument("--input", action="append", default=[]) ap.add_argument("--outdir", required=True) diff --git a/server/operators/wan_video/run.py b/server/operators/wan_video/run.py index 104d3dd..332c041 100644 --- a/server/operators/wan_video/run.py +++ b/server/operators/wan_video/run.py @@ -4,6 +4,7 @@ cached in RAM between jobs). Frames come back as PNGs; ffmpeg muxes the MP4.""" import argparse import json import mimetypes +import os import random import subprocess import sys @@ -13,6 +14,9 @@ import urllib.request import uuid from pathlib import Path +# job env has a minimal PATH; we shell out to ffmpeg for the mux +os.environ["PATH"] = "/opt/homebrew/bin:/usr/local/bin:" + os.environ.get("PATH", "") + ROOT = Path(__file__).resolve().parents[3] COMFY = ROOT / "vendor" / "comfyui" API = "http://127.0.0.1:8188"