?
This commit is contained in:
@@ -74,6 +74,7 @@ def run_action_subprocess(mp4_path: Path, settings: Settings) -> str:
|
||||
cwd=str(settings.fish_action_root),
|
||||
env=os.environ.copy(),
|
||||
log_name="FishAction",
|
||||
stream_to_logger=False,
|
||||
)
|
||||
if proc.returncode != 0:
|
||||
err = proc.stdout or ""
|
||||
@@ -87,7 +88,7 @@ def run_action_subprocess(mp4_path: Path, settings: Settings) -> str:
|
||||
if not rows:
|
||||
raise RuntimeError("Empty prediction JSON")
|
||||
pred_en = str(rows[0].get("pred_3class", "")).strip().lower()
|
||||
logger.info(
|
||||
logger.debug(
|
||||
"[FishAction] prediction row:\n{}",
|
||||
format_json_pretty(rows[0]),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user