优化交互文案

This commit is contained in:
puke
2025-10-28 15:13:44 +08:00
committed by puke
parent a81d0d303d
commit bf1641f8a5
3 changed files with 4 additions and 7 deletions

View File

@@ -373,13 +373,12 @@ def main():
["generate", "fixed"],
horizontal=True,
format_func=lambda x: tr(f"mode.{x}"),
label_visibility="collapsed",
help=tr("mode.help")
label_visibility="collapsed"
)
# Text input (unified for both modes)
text_placeholder = tr("input.topic_placeholder") if mode == "generate" else tr("input.content_placeholder")
text_height = 100 if mode == "generate" else 200
text_height = 120 if mode == "generate" else 200
text_help = tr("input.text_help_generate") if mode == "generate" else tr("input.text_help_fixed")
text = st.text_area(