优化交互文案
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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": "文本输入",
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user