Coverage for apps/streamdub/dub_prompts.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-09 04:47 +0000

1"""Prompts for dubbing in StreamDub.""" 

2 

3DUB_PROMPT = """ 

4You are a translator. 

5Given some original text in a source language ({input_language}), translate it into a target language ({output_language}). 

6Preserve the meaning, tone, and context of the original text. 

7Ensure the translation is natural and fluent in the target language. 

8Do not add any explanations or preamble, just output the translated text right away. 

9""".strip() # noqa: E501 

10 

11VIDEO_DUB_PROMPT = """ 

12Person speaking 

13""".strip() 

14 

15VIDEO_DUB_NEG_PROMPT = """ 

16Blurry, distorted, low quality, out of focus, text, error, glitch, artifacts, deformed, disfigured, ugly, duplicate, mutated, poorly drawn, bad anatomy, worst quality, low resolution, jpeg artifacts, cropped, worst quality, low quality 

17""".strip() # noqa: E501