OrbiSubs: English subtitle track translated by the gpu02 LLM (separate process)
orbisubs.py escribe la cola cues.jsonl y anuncia la pista en el master (--en); orbisubs_tr.py junta frases, traduce con Qwen (sin thinking, contexto de la frase anterior) y escribe en/<seq>.vtt + en.m3u8. Tarea 077.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=OrbiSubs traducción %i (español → inglés con el LLM de gpu02)
|
||||
After=orbisubs-asr@%i.service
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/orbisubs/%i.env
|
||||
# Proceso aparte: si el LLM se cuelga, la pista de español sigue igual.
|
||||
ExecStartPre=/bin/sh -c 'rm -rf /var/www/hls/%i/en /var/www/hls/%i/en.m3u8; mkdir -p /var/log/orbisubs'
|
||||
ExecStart=/opt/orbisubs/venv/bin/python /opt/orbisubs/orbisubs_tr.py --dir /var/www/hls/%i \
|
||||
--url ${LLM_URL} --model ${LLM_MODEL} --metrics /var/log/orbisubs/%i-en.jsonl
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user