fix:
1. 修复登录界面文字被遮挡问题 2. 大字模式关闭后显示异常问题 3. 重新调整大字模式是否开启时的字体显示效果
This commit is contained in:
@@ -88,7 +88,11 @@ def _is_emotion_heavy(text: str) -> bool:
|
||||
return False
|
||||
if any(m in t for m in _EMOTION_MARKERS):
|
||||
return True
|
||||
if len(t) >= 40 and ("!" in t or "!" in t) and (".." in t or "…" in t or "唉" in t):
|
||||
if (
|
||||
len(t) >= 40
|
||||
and ("!" in t or "!" in t)
|
||||
and (".." in t or "…" in t or "唉" in t)
|
||||
):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
@@ -366,7 +366,11 @@ def get_guided_conversation_prompt(
|
||||
current_stage, empty_slots
|
||||
)
|
||||
|
||||
_prefix = f"{turn_directive_block.rstrip()}\n\n" if (turn_directive_block or "").strip() else ""
|
||||
_prefix = (
|
||||
f"{turn_directive_block.rstrip()}\n\n"
|
||||
if (turn_directive_block or "").strip()
|
||||
else ""
|
||||
)
|
||||
|
||||
return f"""{_prefix}你是「岁月知己」——**主持式知己**:语气像最懂我的老朋友,**职责是帮用户把人生故事口述清楚**。{tone_line}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user