优化交互文案

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

@@ -14,14 +14,13 @@
"mode.generate": "💡 Generate Mode",
"mode.fixed": "📄 Fixed Mode",
"mode.help": "Generate: AI creates narrations from topic. Fixed: Use your script directly without modification, one narration per line.",
"input.book_name": "Book Name",
"input.book_name_placeholder": "e.g., Atomic Habits, How to Win Friends",
"input.book_name_help": "Enter the book name, will fetch book info and generate video",
"input.topic": "Topic",
"input.topic_placeholder": "e.g., How to build passive income, How to build good habits",
"input.topic_placeholder": "AI automatically creates specified number of narrations\nExample: How to build passive income, 如何增加被动收入",
"input.topic_help": "Enter a topic, AI will generate content based on it",
"input.text": "Text Input",

View File

@@ -14,14 +14,13 @@
"mode.generate": "💡 生成模式",
"mode.fixed": "📄 固定模式",
"mode.help": "生成模式AI 从主题创作旁白。固定模式:直接使用您的脚本,不做任何改写,每行一个旁白。",
"input.book_name": "书名",
"input.book_name_placeholder": "例如原子习惯、人性的弱点、Atomic Habits",
"input.book_name_help": "输入书名,将自动获取书籍信息并生成视频",
"input.topic": "主题",
"input.topic_placeholder": "例如如何增加被动收入、How to build good habits",
"input.topic_placeholder": "AI 自动创作指定数量的旁白\n例如如何增加被动收入、How to build passive income",
"input.topic_help": "输入一个主题AI 将根据主题生成内容",
"input.text": "文本输入",

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(