Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

969 B
Raw Blame
#!/bin/sh
# raea in raea cloud's image (docs/cloud.feature CL15): with RAEA_CLOUD_GPU_URL set, `raea render ...` (each command in
# RAEA_CLOUD_GPU_COMMANDS) goes to that GPU worker (server/offload.ts); everything else, and everything when it isn't
# set, is raea itself. The server, the agents and their shells all reach raea through this one.
if [ -n "${RAEA_CLOUD_GPU_URL:-}" ] && [ -n "${1:-}" ]; then
  case " ${RAEA_CLOUD_GPU_COMMANDS:-render} " in
    *" $1 "*) exec node /opt/raea-cloud/server/offload.ts "$@" ;;
  esac
fi
# what's said, by the farm's Whisper (server/words.ts): raea's own transcriber is Mac only. `raea transcribe` is the name
# agents reach for, so it's the same
case "${1:-}" in
  words|transcribe) exec node /opt/raea-cloud/server/words.ts "$@" ;;
  # faces cut by the frame or a seam, text too small (server/frames.ts, the farm's face detector)
  frames) exec node /opt/raea-cloud/server/frames.ts "$@" ;;
esac
exec /opt/raea/bin/raea "$@"