Funktioniert
This commit is contained in:
24
clone_model.sh
Executable file
24
clone_model.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
case "${1:-}" in
|
||||
load|start)
|
||||
docker compose --profile clone up -d qwen3-tts-clone
|
||||
;;
|
||||
unload|stop)
|
||||
docker compose --profile clone stop qwen3-tts-clone >/dev/null
|
||||
docker compose --profile clone rm -f qwen3-tts-clone >/dev/null
|
||||
;;
|
||||
status)
|
||||
docker ps --filter "name=qwen3-tts-clone" --format '{{.Names}} {{.Status}} {{.Ports}}'
|
||||
;;
|
||||
logs)
|
||||
docker logs -f qwen3-tts-clone
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {load|unload|status|logs}" >&2
|
||||
echo "Set QWEN3_TTS_CLONE_MODEL=<model-id> before load if needed." >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user