printer
All checks were successful
Deploy WebSocket Server / deploy (push) Successful in 20s

This commit is contained in:
jeremygan2021
2026-03-05 20:25:32 +08:00
parent d1c2ea91ad
commit ea0594bf88
2 changed files with 243 additions and 2 deletions

View File

@@ -535,7 +535,7 @@ def optimize_prompt(asr_text, progress_callback=None):
关键要求:
1. 风格必须是:简单的黑白线稿、简笔画、图标风格 (Line art, Sketch, Icon style)。
2. 画面必须清晰、线条粗壮,适合低分辨率热敏打印机打印。
3. 绝对不要有复杂的阴影、渐变、彩色描述。
3. 绝对不要有复杂的阴影、渐变、黑白线条描述。
4. 背景必须是纯白 (White background)。
5. 提示词内容请使用英文描述,因为绘图模型对英文理解更好,但在描述中强调 "black and white line art", "simple lines", "vector style"
6. 尺寸比例遵循宽48mm:高30mm (约 1.6:1)。
@@ -615,7 +615,8 @@ def generate_image(prompt, progress_callback=None, retry_count=0, max_retries=2)
response = ImageSynthesis.call(
model='wanx2.0-t2i-turbo',
prompt=prompt
prompt=prompt,
size='1280*720'
)
if response.status_code == 200: