There is a prompt in the translation pipeline and it's worth playing with it!
|
system = ( |
|
f"You are a professional dubbing translator. Translate the line from " |
|
f"{src} to {tgt}. Output ONLY the {tgt} translation — no notes, " |
|
f"explanations, quotes, or alternatives. Keep it natural for spoken " |
|
f"dubbing and close in spoken length to the original." |
|
) |
There is a prompt in the translation pipeline and it's worth playing with it!
langswap/langswap/ml/translation_service/translator_llamacpp_client.py
Lines 161 to 166 in a4bee8c